diff options
author | Simon Glass <sjg@chromium.org> | 2015-04-20 21:37:23 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-05-06 05:58:39 +0300 |
commit | dbeda5b2255089889788e0dd3478680feec86139 (patch) | |
tree | e4640d8cee4a8aaf6c13c23e1bd067a3b981e8fd /drivers/rtc/Kconfig | |
parent | 94eefdee2f5db36d52e817a01b07c8255527e193 (diff) | |
download | u-boot-dbeda5b2255089889788e0dd3478680feec86139.tar.xz |
dm: rtc: Add a uclass for real-time clocks
Add a uclass for real-time clocks which support getting the current time,
setting it and resetting the chip to a known-working state. Some RTCs have
additional registers which can be used to store settings, so also provide
an interface to these.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/rtc/Kconfig')
-rw-r--r-- | drivers/rtc/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index e69de29bb2..bd63621e37 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig @@ -0,0 +1,8 @@ +config DM_RTC + bool "Enable Driver Model for RTC drivers" + depends on DM + help + Enable drver model for real-time-clock drivers. The RTC uclass + then provides the rtc_get()/rtc_set() interface, delegating to + drivers to perform the actual functions. See rtc.h for a + description of the API. |