mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
05a8e1a447
commit
dd8a29040d
5 changed files with 25 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue