diff options
author | Mugunthan V N <mugunthanvnm@ti.com> | 2016-01-16 21:33:58 +0530 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-01-20 19:06:21 -0700 |
commit | c8336975381d481829e3e6a81c38cd118826ca03 (patch) | |
tree | fae575cc1e4752a6a2272fd3607c1d124e1a1e5d /lib/time.c | |
parent | 28a6c01187d30f0e7b7dbe6e4e198e76ce6246f1 (diff) | |
download | u-boot-imx-c8336975381d481829e3e6a81c38cd118826ca03.zip u-boot-imx-c8336975381d481829e3e6a81c38cd118826ca03.tar.gz u-boot-imx-c8336975381d481829e3e6a81c38cd118826ca03.tar.bz2 |
dm: timer: uclass: add timer init in uclass driver to add timer device
Adding timer init function in timer-uclass driver to create and
initialize the timer device on platforms where u-boot,dm-pre-reloc
is not used. Since there will be multiple timer devices in the
system, adding a tick-timer node in chosen node to know which
timer device to be used as tick timer in u-boot.
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Diffstat (limited to 'lib/time.c')
-rw-r--r-- | lib/time.c | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -41,23 +41,6 @@ extern unsigned long __weak timer_read_counter(void); #endif #ifdef CONFIG_TIMER -static int notrace dm_timer_init(void) -{ - struct udevice *dev; - int ret; - - if (!gd->timer) { - ret = uclass_first_device(UCLASS_TIMER, &dev); - if (ret) - return ret; - if (!dev) - return -ENODEV; - gd->timer = dev; - } - - return 0; -} - ulong notrace get_tbclk(void) { int ret; |