Commit 98c09140 authored by Anas Nashif's avatar Anas Nashif
Browse files

qmsi: watchdog: use built-in qmsi driver



Change-Id: I0cff75181bb2a51c91e6589f9624f0891db0b6e9
Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent 80e9d63d
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -134,20 +134,11 @@ config BLUETOOTH_MONITOR_ON_DEV_NAME
	default "UART_1" if BLUETOOTH_DEBUG_MONITOR

if WATCHDOG
config WDT_DW
config WDT_QMSI
	def_bool y

if WDT_DW
config WDT_DW_IRQ_PRI
	default 0
endif # WDT_DW

if WDT_QMSI
config WDT_QMSI_IRQ
	default 16
config WDT_QMSI_IRQ_PRI
	default 0
endif # WDT_QMSI
endif # WATCHDOG

if RTC
+1 −16
Original line number Diff line number Diff line
@@ -310,26 +310,11 @@ endif # SPI_QMSI
endif # SPI

if WATCHDOG
config WDT_DW
config WDT_QMSI
	def_bool y

if WDT_DW
config WDT_DW_CLOCK_GATE
	def_bool n
config WDT_DW_CLOCK_GATE_DRV_NAME
	default CLOCK_CONTROL_QUARK_SE_PERIPHERAL_DRV_NAME
config WDT_DW_CLOCK_GATE_SUBSYS
	default 10
config WDT_DW_IRQ_PRI
	default 2
endif # WDT_DW

if WDT_QMSI
config WDT_QMSI_IRQ
	default 12
config WDT_QMSI_IRQ_PRI
	default 2
endif # WDT_QMSI
endif # WATCHDOG

if RTC
+0 −1
Original line number Diff line number Diff line
@@ -5,7 +5,6 @@ subdir-ccflags-$(CONFIG_QMSI_BUILTIN) +=-I$(srctree)/drivers/qmsi/include
subdir-ccflags-$(CONFIG_QMSI_BUILTIN) +=-I$(srctree)/drivers/qmsi/drivers/include
subdir-ccflags-$(CONFIG_QMSI_BUILTIN) +=-I$(srctree)/drivers/qmsi/soc/$(SOC_NAME)/include/


obj-y = console/
obj-y += random/
obj-y += serial/
+1 −0
Original line number Diff line number Diff line
obj-$(CONFIG_QMSI_BUILTIN) += drivers/qm_scss.o
obj-$(CONFIG_RTC_QMSI) += drivers/qm_rtc.o
obj-$(CONFIG_WDT_QMSI) += drivers/qm_wdt.o
+4 −50
Original line number Diff line number Diff line
@@ -27,66 +27,20 @@ menuconfig WATCHDOG
	Include support for watchdogs.

if WATCHDOG
config WDT_DW
	bool "Enable DesignWare Watchdog"
	default n
	help
	Enable watchdog timer.

config WDT_DW_CLOCK_GATE
	bool "Enable clock gating"
	depends on WDT_DW
	select CLOCK_CONTROL
	default n
	help
	Enable clock gating on WDT DesignWare controller

config WDT_DW_CLOCK_GATE_DRV_NAME
	string "Clock gating driver name"
	depends on WDT_DW_CLOCK_GATE
	default ""

config WDT_DW_CLOCK_GATE_SUBSYS
	int "Clock controller's subsystem"
	depends on WDT_DW_CLOCK_GATE
	default 0

config WDT_DW_DRV_NAME
	string "Driver instance name"
config WDT_DRV_NAME
	string "Watchdog driver instance name"
	default "WATCHDOG"
	depends on WDT_DW
	help
	Designware WDT driver instance name

config WDT_DW_IRQ_PRI
	int "Interrupt priority"
	depends on WDT_DW
	help
	DesignWare WDT interrupt priority
	Watchdog driver instance name

config WDT_QMSI
	bool "QMSI Watchdog driver"
	default n
	depends on QMSI_DRIVERS
	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. For more information about
	QMSI BSP see CONFIG_QMSI_DRIVERS.

config WDT_QMSI_DRV_NAME
	string "Driver instance name"
	default "WATCHDOG"
	depends on WDT_QMSI
	help
	QMSI driver instance name

config WDT_QMSI_IRQ
	int "Interrupt number"
	depends on WDT_QMSI
	help
	Watchdog interrupt number
	driver provided by the QMSI BSP.

config WDT_QMSI_IRQ_PRI
	int "Interrupt priority"
Loading