Commit 80e9d63d authored by Anas Nashif's avatar Anas Nashif
Browse files

qmsi: rtc: use built-in qmsi driver



Change-Id: If8e70c946f73abf03a695fecaeff30a9881f6e94
Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent 987016b9
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -151,18 +151,11 @@ endif # WDT_QMSI
endif # WATCHDOG

if RTC
config RTC_QMSI
	def_bool y

if RTC_QMSI
config RTC_QMSI_IRQ
	default 2
config RTC_QMSI_IRQ_PRI
	default 0
endif # RTC_QMSI

config RTC_DW
	def_bool y
config RTC_DW_IRQ_PRI
	default 0 if RTC_DW

endif # RTC

+2 −19
Original line number Diff line number Diff line
@@ -333,27 +333,10 @@ endif # WDT_QMSI
endif # WATCHDOG

if RTC

if RTC_QMSI
config RTC_QMSI_IRQ
	default 11
config RTC_QMSI_IRQ_PRI
	default 2
endif # RTC_QMSI

config RTC_DW
config RTC_QMSI
	def_bool y

if RTC_DW
config RTC_DW_CLOCK_GATE
	def_bool y
config RTC_DW_CLOCK_GATE_DRV_NAME
	default CLOCK_CONTROL_QUARK_SE_PERIPHERAL_DRV_NAME
config RTC_DW_CLOCK_GATE_SUBSYS
	default 11
config RTC_DW_IRQ_PRI
config RTC_QMSI_IRQ_PRI
	default 2
endif # RTC_DW
endif # RTC

if UART_NS16550
+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
+1 −37
Original line number Diff line number Diff line
@@ -35,52 +35,16 @@ config RTC_DRV_NAME
	RTC driver instance name

config RTC_QMSI
	depends on QMSI_DRIVERS
	bool "QMSI RTC Driver"
	depends on QMSI
	default n
	help
	Build QMSI RTC driver.

config RTC_QMSI_IRQ
	int "QMSI RTC Driver Interrupt number"
	depends on RTC_QMSI
	help
	RTC interrupt number

config RTC_QMSI_IRQ_PRI
	int "QMSI RTC Driver Interrupt priority"
	depends on RTC_QMSI
	help
	RTC interrupt priority.

config RTC_DW
	bool "Build Designware RTC Driver"
	default n
	help
	Designware RTC driver.

config RTC_DW_CLOCK_GATE
	bool "Enable clock gating"
	depends on RTC_DW
	select CLOCK_CONTROL
	default n
	help
	Enable clock gating on RTC DesignWare controller

config RTC_DW_CLOCK_GATE_DRV_NAME
	string "Clock gating driver name"
	depends on RTC_DW_CLOCK_GATE
	default ""

config RTC_DW_CLOCK_GATE_SUBSYS
	int "Clock controller's subsystem"
	depends on RTC_DW_CLOCK_GATE
	default 0

config RTC_DW_IRQ_PRI
	int "DesignWare RTC Driver Interrupt priority"
	depends on RTC_DW
	help
	RTC interrupt priority.

endif # RTC
+0 −3
Original line number Diff line number Diff line
ccflags-$(CONFIG_RTC_QMSI) += -I$(CONFIG_QMSI_INSTALL_PATH)/include

obj-$(CONFIG_RTC_DW) += rtc_dw.o
obj-$(CONFIG_RTC_QMSI) += rtc_qmsi.o
Loading