summaryrefslogtreecommitdiffstats
path: root/include/timer.h
diff options
context:
space:
mode:
authorMugunthan V N <mugunthanvnm@ti.com>2016-01-16 21:33:58 +0530
committerSimon Glass <sjg@chromium.org>2016-01-20 19:06:21 -0700
commitc8336975381d481829e3e6a81c38cd118826ca03 (patch)
treefae575cc1e4752a6a2272fd3607c1d124e1a1e5d /include/timer.h
parent28a6c01187d30f0e7b7dbe6e4e198e76ce6246f1 (diff)
downloadtalos-obmc-uboot-c8336975381d481829e3e6a81c38cd118826ca03.tar.gz
talos-obmc-uboot-c8336975381d481829e3e6a81c38cd118826ca03.zip
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 'include/timer.h')
-rw-r--r--include/timer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/timer.h b/include/timer.h
index 7fee17e3d2..f14725cc28 100644
--- a/include/timer.h
+++ b/include/timer.h
@@ -8,6 +8,15 @@
#define _TIMER_H_
/*
+ * dm_timer_init - initialize a timer for time keeping. On success
+ * initializes gd->timer so that lib/timer can use it for future
+ * referrence.
+ *
+ * @return - 0 on success or error number
+ */
+int dm_timer_init(void);
+
+/*
* timer_conv_64 - convert 32-bit counter value to 64-bit
*
* @count: 32-bit counter value
OpenPOWER on IntegriCloud