arch: Use dts to set rtc priorities for Intel quark, x86 and arc

Get the name generated through dts as well.
Fix the rtc driver and relevant SoCs accordingly.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2018-03-05 13:10:07 +01:00 committed by Anas Nashif
commit 250c4a87ed
12 changed files with 28 additions and 19 deletions

View file

@ -20,7 +20,7 @@ if RTC
config RTC_0_NAME
string "Driver instance name"
default "RTC_0"
depends on RTC
depends on RTC && !HAS_DTS
help
RTC driver instance name

View file

@ -7,11 +7,6 @@ config RTC_QMSI
if RTC_QMSI
config RTC_0_IRQ_PRI
int "RTC Driver Interrupt priority"
help
RTC interrupt priority.
config RTC_QMSI_API_REENTRANCY
bool
prompt "RTC shim driver API reentrancy"

View file

@ -142,12 +142,11 @@ static int rtc_qmsi_init(struct device *dev)
k_sem_init(RP_GET(dev), 1, UINT_MAX);
}
IRQ_CONNECT(IRQ_GET_NUMBER(QM_IRQ_RTC_0_INT), CONFIG_RTC_0_IRQ_PRI,
qm_rtc_0_isr, NULL,
IOAPIC_EDGE | IOAPIC_HIGH);
IRQ_CONNECT(CONFIG_RTC_0_IRQ, CONFIG_RTC_0_IRQ_PRI,
qm_rtc_0_isr, NULL, CONFIG_RTC_0_IRQ_FLAGS);
/* Unmask RTC interrupt */
irq_enable(IRQ_GET_NUMBER(QM_IRQ_RTC_0_INT));
irq_enable(CONFIG_RTC_0_IRQ);
/* Route RTC interrupt to the current core */
QM_IR_UNMASK_INTERRUPTS(QM_INTERRUPT_ROUTER->rtc_0_int_mask);