summaryrefslogtreecommitdiff
path: root/drivers/timer/timer-uclass.c
AgeCommit message (Collapse)Author
2015-12-01dm: timer: Support 64-bit counterBin Meng
There are timers with a 64-bit counter value but current timer uclass driver assumes a 32-bit one. Modify timer_get_count() to ask timer driver to always return a 64-bit counter value, and provide an inline helper function timer_conv_64() to handle the 32-bit/64-bit conversion automatically. Signed-off-by: Bin Meng <[email protected]> Acked-by: Simon Glass <[email protected]> Signed-off-by: Simon Glass <[email protected]>
2015-12-01dm: timer: Implement pre_probe()Bin Meng
Every timer device needs to have a valid clock frequency and it can be specified in the device tree. Use pre_probe() to get this in the timer uclass driver. Signed-off-by: Bin Meng <[email protected]> Acked-by: Thomas Chou <[email protected]> Acked-by: Simon Glass <[email protected]>
2015-12-01dm: timer: Fix several nitsBin Meng
This changes 'Timer' to 'timer' at several places. Signed-off-by: Bin Meng <[email protected]> Acked-by: Thomas Chou <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2015-10-23dm: implement a Timer uclassThomas Chou
Implement a Timer uclass to work with lib/time.c. Signed-off-by: Thomas Chou <[email protected]> Acked-by: Simon Glass <[email protected]>