From 6b23dc40d179a86d265171498b9371b2b19ce6e6 Mon Sep 17 00:00:00 2001 From: Andre Guedes Date: Tue, 16 Feb 2016 21:31:35 -0200 Subject: [PATCH] watchdog: Set DW driver as default for Quark SE and D2000 This patch changes both Quark SE and D2000 Kconfig files to enable the WDT_DW driver by default if the WATCHDOG is enabled. This way, we keep it consistent with the approach we already follow for others peripheral drivers (GPIO, I2C, SPI). Change-Id: I9d8b81c0e659b1408137deb71e33dacf6d4108c2 Signed-off-by: Andre Guedes --- arch/x86/soc/quark_d2000/Kconfig | 7 ++++--- arch/x86/soc/quark_se/Kconfig | 7 +++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/arch/x86/soc/quark_d2000/Kconfig b/arch/x86/soc/quark_d2000/Kconfig index 638c419783b..645938e575e 100644 --- a/arch/x86/soc/quark_d2000/Kconfig +++ b/arch/x86/soc/quark_d2000/Kconfig @@ -157,15 +157,16 @@ config UART_PIPE_IRQ_PRI endif if WATCHDOG +config WDT_DW + def_bool y if WDT_DW config WDT_DW_BASE_ADDR default 0xB0000000 config WDT_DW_IRQ default 16 -endif - -endif +endif # WDT_DW +endif # WATCHDOG if RTC config RTC_IRQ diff --git a/arch/x86/soc/quark_se/Kconfig b/arch/x86/soc/quark_se/Kconfig index 654a38d7b66..315abfd3391 100644 --- a/arch/x86/soc/quark_se/Kconfig +++ b/arch/x86/soc/quark_se/Kconfig @@ -235,6 +235,9 @@ endif # SPI_QMSI endif if WATCHDOG +config WDT_DW + def_bool y + if WDT_DW config WDT_DW_CLOCK_GATE def_bool n @@ -246,8 +249,8 @@ config WDT_DW_BASE_ADDR default 0xB0000000 config WDT_DW_IRQ default 12 -endif -endif +endif # WDT_DW +endif # WATCHDOG if RTC config RTC_IRQ