diff mbox

[U-Boot,18/20] dm: rtc: sandbox: Enable real-time clock support

Message ID 1429555051-22335-19-git-send-email-sjg@chromium.org
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass April 20, 2015, 6:37 p.m. UTC
Enable real-time-clock support in sandbox.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 configs/sandbox_defconfig | 1 +
 drivers/rtc/Makefile      | 2 --
 include/configs/sandbox.h | 1 +
 3 files changed, 2 insertions(+), 2 deletions(-)

Comments

Simon Glass May 4, 2015, 2:20 p.m. UTC | #1
On 20 April 2015 at 12:37, Simon Glass <sjg@chromium.org> wrote:
> Enable real-time-clock support in sandbox.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
>  configs/sandbox_defconfig | 1 +
>  drivers/rtc/Makefile      | 2 --
>  include/configs/sandbox.h | 1 +
>  3 files changed, 2 insertions(+), 2 deletions(-)

Applied to u-boot-dm.
diff mbox

Patch

diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig
index 5de7fbe..759f53a 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 9077bb3..3092de1 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 0a36719..a5f245d 100644
--- a/include/configs/sandbox.h
+++ b/include/configs/sandbox.h
@@ -192,5 +192,6 @@ 
 
 #define CONFIG_CMD_LZMADEC
 #define CONFIG_CMD_USB
+#define CONFIG_CMD_DATE
 
 #endif