rtc: Kconfig: Split off QMSI into separate Kconfig

This patch splits off the QMSI RTC into a separate Kconfig
file in preparation for adding more RTC drivers.

Signed-off-by: Andy Gross <agross@kernel.org>
This commit is contained in:
Andy Gross 2018-04-24 13:27:35 -05:00 committed by Kumar Gala
commit 4aaaccc739
2 changed files with 23 additions and 19 deletions

View file

@ -17,14 +17,6 @@ menuconfig RTC
if RTC
config RTC_QMSI
bool "QMSI RTC Driver"
depends on QMSI
default n
help
Build QMSI RTC driver.
config RTC_0_NAME
string "Driver instance name"
default "RTC_0"
@ -32,17 +24,8 @@ config RTC_0_NAME
help
RTC driver instance name
config RTC_0_IRQ_PRI
int "RTC Driver Interrupt priority"
depends on RTC_QMSI
help
RTC interrupt priority.
comment "RTC drivers"
config RTC_QMSI_API_REENTRANCY
bool
prompt "RTC shim driver API reentrancy"
default n
help
Enable support for RTC shim driver API reentrancy.
source "drivers/rtc/Kconfig.qmsi"
endif # RTC

21
drivers/rtc/Kconfig.qmsi Normal file
View file

@ -0,0 +1,21 @@
config RTC_QMSI
bool "QMSI RTC Driver"
depends on QMSI
default n
help
Build QMSI RTC driver.
if RTC_QMSI
config RTC_0_IRQ_PRI
int "RTC Driver Interrupt priority"
help
RTC interrupt priority.
config RTC_QMSI_API_REENTRANCY
bool
prompt "RTC shim driver API reentrancy"
default n
help
Enable support for RTC shim driver API reentrancy.
endif