tests: build_all: plic: multi instance
Add PLIC multi-instance build-only test. Signed-off-by: Yong Cong Sin <ycsin@meta.com>
This commit is contained in:
parent
e538b0e5a6
commit
efd1073ceb
|
@ -0,0 +1,7 @@
|
|||
# Copyright (c) 2023 Meta
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config NUM_IRQS
|
||||
int ""
|
||||
|
||||
source "Kconfig"
|
|
@ -0,0 +1,38 @@
|
|||
/*
|
||||
* Copyright (c) 2023 Meta
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/{
|
||||
soc {
|
||||
plic1: interrupt-controller@8000000 {
|
||||
riscv,max-priority = <7>;
|
||||
riscv,ndev = <0x35>;
|
||||
reg = <0x08000000 0x04000000>;
|
||||
interrupts-extended = <
|
||||
&hlic0 0x03
|
||||
&hlic1 0x03
|
||||
&hlic2 0x03
|
||||
&hlic3 0x03
|
||||
&hlic4 0x03
|
||||
&hlic5 0x03
|
||||
&hlic6 0x03
|
||||
&hlic7 0x03
|
||||
>;
|
||||
interrupt-controller;
|
||||
compatible = "sifive,plic-1.0.0";
|
||||
#address-cells = <0x00>;
|
||||
#interrupt-cells = <0x02>;
|
||||
};
|
||||
};
|
||||
|
||||
uart1: uart@10000100 {
|
||||
interrupts = <0x0a 1>;
|
||||
interrupt-parent = <&plic1>;
|
||||
clock-frequency = <0x384000>;
|
||||
reg = <0x10000100 0x100>;
|
||||
compatible = "ns16550";
|
||||
reg-shift = <0>;
|
||||
};
|
||||
};
|
|
@ -10,3 +10,13 @@ common:
|
|||
- plic
|
||||
tests:
|
||||
drivers.interrupt_controller.intc_plic.build: {}
|
||||
drivers.interrupt_controller.intc_plic.multi_instance.build:
|
||||
extra_args:
|
||||
DTC_OVERLAY_FILE="./app.multi_instance.overlay"
|
||||
extra_configs:
|
||||
- CONFIG_NUM_IRQS=116
|
||||
- CONFIG_MULTI_LEVEL_INTERRUPTS=y
|
||||
- CONFIG_DYNAMIC_INTERRUPTS=y
|
||||
- CONFIG_NUM_2ND_LEVEL_AGGREGATORS=2
|
||||
- CONFIG_2ND_LVL_INTR_01_OFFSET=3
|
||||
- CONFIG_UART_INTERRUPT_DRIVEN=y
|
||||
|
|
Loading…
Reference in a new issue