watchdog: Add WDT driver for Atmel SAM SoCs

Basic Watchdog driver for Atmel SAM family MCUs. Currently only
disabling the watchdog is supported.

Tested on Atmel SAMV71 Xplained Ultra Evaluation Kit.

Origin: Original

Jira: ZEP-1684

Change-Id: I8f717c7f53aa290c944b7935e0570c2a6f53956e
Signed-off-by: Souvik K Chakravarty <souvik.k.chakravarty@intel.com>
This commit is contained in:
Souvik K Chakravarty 2017-03-07 08:56:58 +05:30 committed by Maureen Helm
commit 8fa2f82524
5 changed files with 126 additions and 0 deletions

View file

@ -0,0 +1,27 @@
# Kconfig - Atmel SAM WDT configuration
#
# Copyright (C) 2017 Intel Deutschland GmbH
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig WDT_SAM
bool "Atmel SAM MCU Family Watchdog (WDT) Driver"
depends on SOC_FAMILY_SAM
default y
help
Enable WDT driver for Atmel SAM MCUs.
config WDT_SAM_DISABLE_AT_BOOT
bool "Disable WDT during boot"
depends on WDT_SAM
default y
help
Select this option to disable the WDT during boot.
config WDT_SAM_DEVICE_NAME
string "Device name for Watchdog (WDT)"
depends on WDT_SAM
default "WDT"
help
Set the name used by WDT device during registration.