summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/Makefile
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-04-20 12:37:25 -0600
committerSimon Glass <sjg@chromium.org>2015-05-05 20:58:40 -0600
commit5871416640a5ef93ccdfaf391dc6321c5fc2f50a (patch)
tree7e43decee7a706b0afa01871bafefb60a80920e5 /drivers/rtc/Makefile
parentdd18e5d8441e12e4ed084dfe7400112851b807f8 (diff)
downloadblackbird-obmc-uboot-5871416640a5ef93ccdfaf391dc6321c5fc2f50a.tar.gz
blackbird-obmc-uboot-5871416640a5ef93ccdfaf391dc6321c5fc2f50a.zip
dm: rtc: sandbox: Add a driver for the sandbox I2C RTC
Add a driver which communicates with the sandbox I2C emulation RTC device and permits it to be used in U-Boot. This driver is very simple - it just reads and writes selected I2C registers in the device. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/rtc/Makefile')
-rw-r--r--drivers/rtc/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/rtc/Makefile b/drivers/rtc/Makefile
index aeb705ae96..9077bb39f1 100644
--- a/drivers/rtc/Makefile
+++ b/drivers/rtc/Makefile
@@ -52,4 +52,7 @@ obj-$(CONFIG_RTC_RTC4543) += rtc4543.o
obj-$(CONFIG_RTC_RV3029) += rv3029.o
obj-$(CONFIG_RTC_RX8025) += rx8025.o
obj-$(CONFIG_RTC_S3C24X0) += s3c24x0_rtc.o
+ifdef CONFIG_DM_RTC
+obj-$(CONFIG_SANDBOX) += sandbox_rtc.o
+endif
obj-$(CONFIG_RTC_X1205) += x1205.o
OpenPOWER on IntegriCloud