summaryrefslogtreecommitdiff
path: root/common/Makefile
diff options
context:
space:
mode:
authorAnton Staaf <robotboy@chromium.org>2012-12-05 14:46:29 +0000
committerTom Rini <trini@ti.com>2012-12-11 13:17:33 -0700
commit53fdc7ef2e43902c4415a81a434c35f9ed8713bc (patch)
treefa7765b0b3177409e40b2a95faa09e2699dd9f63 /common/Makefile
parent01433d60016a5aa4b53608f816e1e220f0108546 (diff)
downloadu-boot-imx-53fdc7ef2e43902c4415a81a434c35f9ed8713bc.zip
u-boot-imx-53fdc7ef2e43902c4415a81a434c35f9ed8713bc.tar.gz
u-boot-imx-53fdc7ef2e43902c4415a81a434c35f9ed8713bc.tar.bz2
Add gettime command
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: Anton Staaf <robotboy@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/Makefile')
-rw-r--r--common/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/Makefile b/common/Makefile
index c29a7d8..b3a6032 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -100,6 +100,7 @@ ifdef CONFIG_FPGA
COBJS-$(CONFIG_CMD_FPGA) += cmd_fpga.o
endif
COBJS-$(CONFIG_CMD_FS_GENERIC) += cmd_fs.o
+COBJS-$(CONFIG_CMD_GETTIME) += cmd_gettime.o
COBJS-$(CONFIG_CMD_GPIO) += cmd_gpio.o
COBJS-$(CONFIG_CMD_I2C) += cmd_i2c.o
COBJS-$(CONFIG_CMD_IDE) += cmd_ide.o