drivers/interrupt-controller: Make irqs DT configured in DW
DesignWare driver can manage different amount of irqs so let's make it configurable via DTS. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
251141567f
commit
8d10e66371
4 changed files with 8 additions and 1 deletions
|
@ -127,7 +127,7 @@ static void dw_ictl_config_irq(struct device *dev);
|
|||
|
||||
static const struct dw_ictl_config dw_config = {
|
||||
.irq_num = DT_INTC_DW_0_BASE_ADDR,
|
||||
.numirqs = DW_ICTL_NUM_IRQS,
|
||||
.numirqs = DT_INTC_DW_0_NUM_IRQS,
|
||||
.isr_table_offset = CONFIG_DW_ISR_TBL_OFFSET,
|
||||
.config_func = dw_ictl_config_irq,
|
||||
};
|
||||
|
|
|
@ -14,6 +14,11 @@ properties:
|
|||
"#interrupt-cells":
|
||||
const: 3
|
||||
|
||||
num-irqs:
|
||||
type: int
|
||||
required: true
|
||||
description: Number of irq the controller manages
|
||||
|
||||
interrupt-cells:
|
||||
- irq
|
||||
- sense
|
||||
|
|
|
@ -91,6 +91,7 @@
|
|||
interrupt-controller;
|
||||
#interrupt-cells = <3>;
|
||||
interrupts = <6 0 0>;
|
||||
num-irqs = <9>;
|
||||
interrupt-parent = <&cavs0>;
|
||||
};
|
||||
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
DT_SNPS_DESIGNWARE_INTC_81800_IRQ_0_PRIORITY
|
||||
#define DT_INTC_DW_0_IRQ_FLAGS \
|
||||
DT_SNPS_DESIGNWARE_INTC_81800_IRQ_0_SENSE
|
||||
#define DT_INTC_DW_0_NUM_IRQS DT_SNPS_DESIGNWARE_INTC_81800_NUM_IRQS
|
||||
|
||||
#define DT_SPI_DW_0_BASE_ADDRESS \
|
||||
DT_SNPS_DESIGNWARE_SPI_E000_BASE_ADDRESS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue