From f98cb40179e3b03d2525e283c67c659fd43f6c96 Mon Sep 17 00:00:00 2001 From: Souvik K Chakravarty Date: Mon, 27 Feb 2017 10:39:28 +0530 Subject: [PATCH] soc: defconfig: Enable WDT for ATMEL SAM MCUs In Atmel SAM Family of MCUs, the watchdog is enabled by default at boot. The watchdog once disabled, cannot be re-enabled back without a reset. Hence disabling the Watchdog needs to be handled via the Watchdog driver. Tested on Atmel SAMV71 Xplained Ultra Evaluation Kit. Jira: ZEP-1684 Change-Id: I5682c3f007a846b064b8d16abf0d9b67d4c8e7d6 Signed-off-by: Souvik K Chakravarty --- arch/arm/soc/atmel_sam/Kconfig.defconfig | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/soc/atmel_sam/Kconfig.defconfig b/arch/arm/soc/atmel_sam/Kconfig.defconfig index a19c462a2cb..bdddffc4387 100644 --- a/arch/arm/soc/atmel_sam/Kconfig.defconfig +++ b/arch/arm/soc/atmel_sam/Kconfig.defconfig @@ -9,9 +9,15 @@ config SOC_FAMILY_SAM # omit prompt to signify a "hidden" option default n +if SOC_FAMILY_SAM + config SOC_FAMILY string default atmel_sam - depends on SOC_FAMILY_SAM + +config WATCHDOG + def_bool y + +endif #SOC_FAMILY_SAM source "arch/arm/soc/atmel_sam/*/Kconfig.defconfig.series"