Commit 30bf8a0dae205862c2e8b28ba1bd0a379a4fac1f
Committed by
Bin Meng
1 parent
2446b6b8f7
Exists in
smarc_8mq_lf_v2020.04
and in
23 other branches
spl: Allow RTC drivers to be used in SPL
Add a new Kconfig option to allow RTC drivers to be used in SPL. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Showing 2 changed files with 11 additions and 0 deletions Side-by-side Diff
common/spl/Kconfig
... | ... | @@ -484,6 +484,16 @@ |
484 | 484 | be already in memory when SPL takes over, e.g. loaded by the boot |
485 | 485 | ROM. |
486 | 486 | |
487 | +config SPL_RTC_SUPPORT | |
488 | + bool "Support RTC drivers" | |
489 | + depends on SPL | |
490 | + help | |
491 | + Enable RTC (Real-time Clock) support in SPL. This includes support | |
492 | + for reading and setting the time. Some RTC devices also have some | |
493 | + non-volatile (battery-backed) memory which is accessible if | |
494 | + needed. This enables the drivers in drivers/rtc as part of an SPL | |
495 | + build. | |
496 | + | |
487 | 497 | config SPL_SATA_SUPPORT |
488 | 498 | bool "Support loading from SATA" |
489 | 499 | depends on SPL |
drivers/Makefile
... | ... | @@ -34,6 +34,7 @@ |
34 | 34 | obj-$(CONFIG_SPL_ETH_SUPPORT) += net/phy/ |
35 | 35 | obj-$(CONFIG_SPL_USBETH_SUPPORT) += net/phy/ |
36 | 36 | obj-$(CONFIG_SPL_PCI_SUPPORT) += pci/ |
37 | +obj-$(CONFIG_SPL_RTC_SUPPORT) += rtc/ | |
37 | 38 | obj-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += usb/musb-new/ |
38 | 39 | obj-$(CONFIG_SPL_USB_GADGET_SUPPORT) += usb/gadget/ |
39 | 40 | obj-$(CONFIG_SPL_USB_GADGET_SUPPORT) += usb/gadget/udc/ |