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:
parent
16c455e4cd
commit
250c4a87ed
12 changed files with 28 additions and 19 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue