From a4cf537d65b030b51e62cb9834ddb6ff1849375b Mon Sep 17 00:00:00 2001 From: Andre Guedes Date: Tue, 16 Feb 2016 16:00:58 -0200 Subject: [PATCH] rtc: Set DW driver as default for Quark SE and D2000 This patch changes both Quark SE and D2000 Kconfig files to enable the RTC_DW driver by default if the RTC is enabled. This way, we keep it consistent with the approach we already follow for others peripheral drivers (GPIO, I2C, SPI). Change-Id: I4910e501c105b6218d046080c47b1e7a42eced92 Signed-off-by: Andre Guedes --- arch/x86/soc/quark_d2000/Kconfig | 8 ++++---- arch/x86/soc/quark_se/Kconfig | 7 +++++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/arch/x86/soc/quark_d2000/Kconfig b/arch/x86/soc/quark_d2000/Kconfig index 03c18b253a6..638c419783b 100644 --- a/arch/x86/soc/quark_d2000/Kconfig +++ b/arch/x86/soc/quark_d2000/Kconfig @@ -168,16 +168,16 @@ endif endif if RTC - config RTC_IRQ default 2 +config RTC_DW + def_bool y if RTC_DW config RTC_DW_BASE_ADDR default 0xB0000400 -endif - -endif +endif # RTC_DW +endif # RTC if I2C config I2C_DW diff --git a/arch/x86/soc/quark_se/Kconfig b/arch/x86/soc/quark_se/Kconfig index fa090f7efc7..654a38d7b66 100644 --- a/arch/x86/soc/quark_se/Kconfig +++ b/arch/x86/soc/quark_se/Kconfig @@ -252,6 +252,9 @@ endif if RTC config RTC_IRQ default 11 +config RTC_DW + def_bool y + if RTC_DW config RTC_DW_CLOCK_GATE def_bool n @@ -261,8 +264,8 @@ config RTC_DW_CLOCK_GATE_SUBSYS default 11 config RTC_DW_BASE_ADDR default 0xB0000400 -endif -endif +endif # RTC_DW +endif # RTC config KERNEL_INIT_PRIORITY_DEFAULT default 40