-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: build_all: plic: multi instance
Add PLIC multi-instance build-only test. Signed-off-by: Yong Cong Sin <[email protected]>
- Loading branch information
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
tests/drivers/build_all/interrupt_controller/intc_plic/Kconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
config NUM_IRQS | ||
int "" | ||
|
||
source "Kconfig" |
43 changes: 43 additions & 0 deletions
43
tests/drivers/build_all/interrupt_controller/intc_plic/app.multi_instance.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright (c) 2023 Meta | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/{ | ||
soc { | ||
plic: interrupt-controller@c000000 { | ||
has-multi-instance; | ||
}; | ||
|
||
plic1: interrupt-controller@8000000 { | ||
riscv,max-priority = <7>; | ||
has-multi-instance; | ||
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 >; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters