diff options
author | Thomas Chou <thomas@wytron.com.tw> | 2015-10-09 13:46:34 +0800 |
---|---|---|
committer | Thomas Chou <thomas@wytron.com.tw> | 2015-10-23 07:37:03 +0800 |
commit | c8a7ba9e6a5fe2fc7b4a7894829aa0b0148b4d40 (patch) | |
tree | 6b6ca5091a7e6927ca2c27fcec0e0b195e1a64c2 /drivers/timer/Kconfig | |
parent | bcae80e9551bc0ba2d67e78bda57b9283b4bab12 (diff) |
dm: implement a Timer uclass
Implement a Timer uclass to work with lib/time.c.
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/timer/Kconfig')
-rw-r--r-- | drivers/timer/Kconfig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/timer/Kconfig b/drivers/timer/Kconfig new file mode 100644 index 0000000000..8e8d6006b0 --- /dev/null +++ b/drivers/timer/Kconfig @@ -0,0 +1,12 @@ +menu "Timer Support" + +config TIMER + bool "Enable Driver Model for Timer drivers" + depends on DM + help + Enable driver model for Timer access. It uses the same API as + lib/time.c. But now implemented by the uclass. The first timer + will be used. The timer is usually a 32 bits free-running up + counter. There may be no real tick, and no timer interrupt. + +endmenu |