riscv: telink_b91: fix compilation
Fix compilation failure due to multilevel interrupt. Signed-off-by: Yong Cong Sin <ycsin@meta.com>
This commit is contained in:
parent
7c870e149c
commit
5b9f82668b
3 changed files with 12 additions and 1 deletions
|
@ -78,7 +78,7 @@ struct gpio_b91_t {
|
||||||
struct gpio_b91_config {
|
struct gpio_b91_config {
|
||||||
struct gpio_driver_config common;
|
struct gpio_driver_config common;
|
||||||
uint32_t gpio_base;
|
uint32_t gpio_base;
|
||||||
uint8_t irq_num;
|
uint32_t irq_num;
|
||||||
uint8_t irq_priority;
|
uint8_t irq_priority;
|
||||||
void (*pirq_connect)(void);
|
void (*pirq_connect)(void);
|
||||||
};
|
};
|
||||||
|
|
|
@ -24,6 +24,12 @@
|
||||||
clock-frequency = <24000000>;
|
clock-frequency = <24000000>;
|
||||||
compatible ="telink,b91", "riscv";
|
compatible ="telink,b91", "riscv";
|
||||||
riscv,isa = "rv32imac_zicsr_zifencei";
|
riscv,isa = "rv32imac_zicsr_zifencei";
|
||||||
|
hlic: interrupt-controller {
|
||||||
|
compatible = "riscv,cpu-intc";
|
||||||
|
#address-cells = <0>;
|
||||||
|
#interrupt-cells = <1>;
|
||||||
|
interrupt-controller;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -124,6 +130,8 @@
|
||||||
#address-cells = <0>;
|
#address-cells = <0>;
|
||||||
#interrupt-cells = <2>;
|
#interrupt-cells = <2>;
|
||||||
interrupt-controller;
|
interrupt-controller;
|
||||||
|
interrupts-extended = <&hlic 11>;
|
||||||
|
interrupt-parent = <&cpu0>;
|
||||||
reg = < 0xe4000000 0x00001000
|
reg = < 0xe4000000 0x00001000
|
||||||
0xe4002000 0x00000800
|
0xe4002000 0x00000800
|
||||||
0xe4200000 0x00010000 >;
|
0xe4200000 0x00010000 >;
|
||||||
|
|
|
@ -50,6 +50,9 @@ config TEST_EXTRA_STACK_SIZE
|
||||||
int
|
int
|
||||||
default 1024
|
default 1024
|
||||||
|
|
||||||
|
config 2ND_LVL_INTR_00_OFFSET
|
||||||
|
default 11
|
||||||
|
|
||||||
config HAS_FLASH_LOAD_OFFSET
|
config HAS_FLASH_LOAD_OFFSET
|
||||||
default y if BOOTLOADER_MCUBOOT
|
default y if BOOTLOADER_MCUBOOT
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue