mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
28a6c01187
commit
c833697538
4 changed files with 96 additions and 17 deletions
|
@ -7,6 +7,15 @@
|
|||
#ifndef _TIMER_H_
|
||||
#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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue