summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-04-20 12:37:29 -0600
committerSimon Glass <sjg@chromium.org>2015-05-05 20:58:40 -0600
commit8e7083fc95774017dba66cff85918ba9f0d0f12b (patch)
treeee6b608ba45bff1ee0cf8d9745833dca2b3d5edd
parent46af3608ead71815c1a311dcf38aea773e584202 (diff)
downloadu-boot-8e7083fc95774017dba66cff85918ba9f0d0f12b.tar.gz
dm: rtc: sandbox: Enable real-time clock support
Enable real-time-clock support in sandbox. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--configs/sandbox_defconfig1
-rw-r--r--drivers/rtc/Makefile2
-rw-r--r--include/configs/sandbox.h1
3 files changed, 2 insertions, 2 deletions
diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig
index 5de7fbedb4..759f53aaa7 100644
--- a/configs/sandbox_defconfig
+++ b/configs/sandbox_defconfig
@@ -26,3 +26,4 @@ CONFIG_TPM_TIS_SANDBOX=y
CONFIG_SOUND=y
CONFIG_CMD_SOUND=y
CONFIG_SOUND_SANDBOX=y
+CONFIG_DM_RTC=y
diff --git a/drivers/rtc/Makefile b/drivers/rtc/Makefile
index 9077bb39f1..3092de1d9c 100644
--- a/drivers/rtc/Makefile
+++ b/drivers/rtc/Makefile
@@ -52,7 +52,5 @@ 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
diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
index 3bf45a224d..ef0efc5795 100644
--- a/include/configs/sandbox.h
+++ b/include/configs/sandbox.h
@@ -207,5 +207,6 @@
#define CONFIG_CMD_LZMADEC
#define CONFIG_CMD_USB
+#define CONFIG_CMD_DATE
#endif