summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/Makefile
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-04-20 12:37:23 -0600
committerSimon Glass <sjg@chromium.org>2015-05-05 20:58:39 -0600
commitdbeda5b2255089889788e0dd3478680feec86139 (patch)
treee4640d8cee4a8aaf6c13c23e1bd067a3b981e8fd /drivers/rtc/Makefile
parent94eefdee2f5db36d52e817a01b07c8255527e193 (diff)
downloadblackbird-obmc-uboot-dbeda5b2255089889788e0dd3478680feec86139.tar.gz
blackbird-obmc-uboot-dbeda5b2255089889788e0dd3478680feec86139.zip
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/Makefile')
-rw-r--r--drivers/rtc/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/Makefile b/drivers/rtc/Makefile
index fdcbc00295..61373b6fdb 100644
--- a/drivers/rtc/Makefile
+++ b/drivers/rtc/Makefile
@@ -7,6 +7,8 @@
#ccflags-y += -DDEBUG
+obj-$(CONFIG_DM_RTC) += rtc-uclass.o
+
obj-$(CONFIG_RTC_AT91SAM9_RTT) += at91sam9_rtt.o
obj-$(CONFIG_RTC_BFIN) += bfin_rtc.o
obj-y += date.o
OpenPOWER on IntegriCloud