diff options
author | Simon Glass <sjg@chromium.org> | 2023-02-22 19:34:04 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-03-03 01:45:58 +0300 |
commit | dd8a29040dec1566c567e5d8c39456bd0f49e01d (patch) | |
tree | e68d6224c97ba0fd1eb641f5a041666fca48c2bd /arch/sandbox/include | |
parent | 05a8e1a44711263a8fd6c39267e57f3d21480a79 (diff) | |
download | u-boot-dd8a29040dec1566c567e5d8c39456bd0f49e01d.tar.xz |
sandbox: Tidy up RTC options
At present we enable the sandbox RTC driver for all builds. Add a separate
Kconfig option to control this, so that it can be disabled in TPL, where
it is not needed.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/include')
-rw-r--r-- | arch/sandbox/include/asm/rtc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sandbox/include/asm/rtc.h b/arch/sandbox/include/asm/rtc.h index 025cd6c67c..bf3ac5ea1e 100644 --- a/arch/sandbox/include/asm/rtc.h +++ b/arch/sandbox/include/asm/rtc.h @@ -40,7 +40,7 @@ enum { * @reg: Register values */ struct sandbox_i2c_rtc_plat_data { -#if CONFIG_IS_ENABLED(OF_PLATDATA) +#if CONFIG_IS_ENABLED(OF_PLATDATA) && IS_ENABLED(CONFIG_RTC_SANDBOX) struct dtd_sandbox_i2c_rtc_emul dtplat; #endif long base_time; |