qmsi: rtc: use built-in qmsi driver
Change-Id: If8e70c946f73abf03a695fecaeff30a9881f6e94 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
987016b954
commit
80e9d63dec
8 changed files with 9 additions and 361 deletions
|
@ -81,11 +81,11 @@ static struct rtc_driver_api api = {
|
|||
|
||||
static int rtc_qmsi_init(struct device *dev)
|
||||
{
|
||||
IRQ_CONNECT(CONFIG_RTC_QMSI_IRQ, CONFIG_RTC_QMSI_IRQ_PRI, qm_rtc_isr_0, 0,
|
||||
IRQ_CONNECT(QM_IRQ_RTC_0, CONFIG_RTC_QMSI_IRQ_PRI, qm_rtc_isr_0, 0,
|
||||
IOAPIC_EDGE | IOAPIC_HIGH);
|
||||
|
||||
/* Unmask RTC interrupt */
|
||||
irq_enable(CONFIG_RTC_QMSI_IRQ);
|
||||
irq_enable(QM_IRQ_RTC_0);
|
||||
|
||||
/* Route RTC interrupt to Lakemont */
|
||||
QM_SCSS_INT->int_rtc_mask &= ~BIT(0);
|
||||
|
@ -94,8 +94,7 @@ static int rtc_qmsi_init(struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
DEVICE_INIT(rtc, CONFIG_RTC_DRV_NAME, &rtc_qmsi_init,
|
||||
NULL, NULL,
|
||||
DEVICE_INIT(rtc, CONFIG_RTC_DRV_NAME, &rtc_qmsi_init, NULL, NULL,
|
||||
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
|
||||
|
||||
static struct device *rtc_qmsi_dev = DEVICE_GET(rtc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue