rtc: add config flag to denote rtc API availability

RTC drivers now select RTC, so that code which depends on them
can implement fallback behavior for systems that lack the
hardware or driver.

Change-Id: I0f5a15d643b0c45c511f1151a98e071b4155fb5a
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-on: http://review.coreboot.org/9953
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Patrick Georgi 2015-04-22 13:28:21 +02:00 committed by Patrick Georgi
parent b7fad898af
commit 0770f25899
5 changed files with 8 additions and 0 deletions

View File

@ -345,6 +345,10 @@ menu "Generic Drivers"
source "src/drivers/*/Kconfig"
endmenu
config RTC
bool
default n
config TPM
bool
default n

View File

@ -1,6 +1,7 @@
config DRIVERS_AS3722_RTC
bool "AS3722 RTC support"
default n
select RTC
config DRIVERS_AS3722_RTC_BUS
int "AS3722 RTC bus"

View File

@ -20,6 +20,7 @@ config DRIVERS_PS2_KEYBOARD
config DRIVERS_MC146818
bool
default y if ARCH_X86
select RTC
source src/drivers/pc80/tpm/Kconfig

View File

@ -25,6 +25,7 @@ config DRIVERS_TI_TPS65913_RTC
bool "TI TPS65913 RTC support"
default n
select DRIVERS_TI_TPS65913
select RTC
config DRIVERS_TI_TPS65913_RTC_BUS
int "TI TPS65913 RTC bus"

View File

@ -32,6 +32,7 @@ config SOC_ROCKCHIP_RK3288
select BOOTBLOCK_CONSOLE
select UNCOMPRESSED_RAMSTAGE
select GENERIC_GPIO_LIB
select RTC
if SOC_ROCKCHIP_RK3288