Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
7 results

cmd_gettime.c

Blame
  • Forked from Reform / reform-boundary-uboot
    Source project has a limited visibility.
    • Anton Staaf's avatar
      53fdc7ef
      Add gettime command · 53fdc7ef
      Anton Staaf authored
      
      Gettime returns the current timer value.  If CONFIG_SYS_HZ is defined
      then the timer value is also converted to seconds.
      
      Tegra20 (SeaBoard) # gettime
      Timer val: 7754
      Seconds : 7
      Remainder : 754
      sys_hz = 1000
      
      There has been some discussion about whether this is useful enough to
      be included in U-Boot. The following boards do not have CONFIG_SYS_HZ
      defined:
      
      M52277EVB
      M52277EVB_stmicro
      M53017EVB
      M54418TWR
      M54418TWR_nand_mii
      M54418TWR_nand_rmii
      M54418TWR_nand_rmii_lowfreq
      M54418TWR_serial_mii
      M54418TWR_serial_rmii
      
      Signed-off-by: default avatarAnton Staaf <robotboy@chromium.org>
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      53fdc7ef
      History
      Add gettime command
      Anton Staaf authored
      
      Gettime returns the current timer value.  If CONFIG_SYS_HZ is defined
      then the timer value is also converted to seconds.
      
      Tegra20 (SeaBoard) # gettime
      Timer val: 7754
      Seconds : 7
      Remainder : 754
      sys_hz = 1000
      
      There has been some discussion about whether this is useful enough to
      be included in U-Boot. The following boards do not have CONFIG_SYS_HZ
      defined:
      
      M52277EVB
      M52277EVB_stmicro
      M53017EVB
      M54418TWR
      M54418TWR_nand_mii
      M54418TWR_nand_rmii
      M54418TWR_nand_rmii_lowfreq
      M54418TWR_serial_mii
      M54418TWR_serial_rmii
      
      Signed-off-by: default avatarAnton Staaf <robotboy@chromium.org>
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>