Skip to content

Commit

Permalink
tests: build_all: plic: multi instance
Browse files Browse the repository at this point in the history
Add PLIC multi-instance build-only test.

Signed-off-by: Yong Cong Sin <[email protected]>
  • Loading branch information
ycsin committed Sep 29, 2023
1 parent 5836e7a commit 3d86eba
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
config NUM_IRQS
int ""

source "Kconfig"
Original file line number Diff line number Diff line change
@@ -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 >;
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3d86eba

Please sign in to comment.