watchdog: Refactor main Kconfig file

This patch refactors the main Kconfig file in order to align it with the
Zephyr code style and to make sure that each Kconfig configuration
portion is easily identifiable.

Change-Id: Ib226aaa9a98e9b08a47d9d1c329f18f4f6936620
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>
This commit is contained in:
Vincenzo Frascino 2016-11-29 11:13:49 +00:00 committed by Kumar Gala
commit b41c0159a8
3 changed files with 62 additions and 42 deletions

View file

@ -27,34 +27,8 @@ menuconfig WATCHDOG
Include support for watchdogs.
if WATCHDOG
config WDT_QMSI
bool "QMSI Watchdog driver"
default n
help
This option enables the QMSI watchdog driver.
This driver is simply a shim driver based on the watchdog
driver provided by the QMSI BSP.
config WDT_0_NAME
string "Watchdog driver instance name"
default "WATCHDOG_0"
help
Watchdog driver instance name
config WDT_0_IRQ_PRI
int "Interrupt priority"
depends on WDT_QMSI
help
Watchdog interrupt priority
config WDT_QMSI_API_REENTRANCY
bool
prompt "WDT shim driver API reentrancy"
depends on WDT_QMSI
default n
help
Enable support for WDT shim driver API reentrancy.
source "drivers/watchdog/Kconfig.qmsi"
source "drivers/watchdog/Kconfig.stm32"

View file

@ -0,0 +1,46 @@
# Kconfig - Watchdog configuration options for QMSI WDT
#
#
# Copyright (c) 2015 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
config WDT_QMSI
bool "QMSI Watchdog driver"
default n
help
This option enables the QMSI watchdog driver.
This driver is simply a shim driver based on the watchdog
driver provided by the QMSI BSP.
config WDT_0_NAME
string "Watchdog driver instance name"
default "WATCHDOG_0"
depends on WDT_QMSI
help
Watchdog driver instance name
config WDT_0_IRQ_PRI
int "Interrupt priority"
depends on WDT_QMSI
help
Watchdog interrupt priority
config WDT_QMSI_API_REENTRANCY
bool
prompt "WDT shim driver API reentrancy"
depends on WDT_QMSI
default n
help
Enable support for WDT shim driver API reentrancy.