lib: utils/irqchip: plic: support T-HEAD C910 PLIC
PATCH 1/1 lib: utils/irqchip: plic: support T-HEAD C910 PLIC
T-HEAD's C910 PLIC still needs the delegation bit setting to allow access from S-mode, but it doesn't need the edge quirk. To distinguish it from C906, add C910 binding.
--- lib/utils/irqchip/fdt_irqchip_plic.c | 2 ++ 1 file changed, 2 insertions(+)
lib/utils/irqchip/fdt_irqchip_plic.c +2 -0
@@ -165,6 +165,8 @@ static const struct fdt_match irqchip_plic_match[] = { { .compatible = "sifive,plic-1.0.0" }, { .compatible = "thead,c900-plic", .data = thead_plic_plat_init }, + { .compatible = "thead,c910-plic", + .data = thead_plic_plat_init }, {/* sentinel */ } };
Signature · 1 line
2.40.1
PATCH 1/1 lib: utils/irqchip: plic: support T-HEAD C910 PLIC
Quoted 15 lines · On Mon, May 8, 2023 at 2:39?AM Jisheng Zhang <[email protected]> wrote:
T-HEAD's C910 PLIC still needs the delegation bit setting to allow access from S-mode, but it doesn't need the edge quirk. To distinguish it from C906, add C910 binding.
Signed-off-by Jisheng Zhang <[email protected]>--- lib/utils/irqchip/fdt_irqchip_plic.c | 2 ++ 1 file changed, 2 insertions(+)lib/utils/irqchip/fdt_irqchip_plic.c +0
-0
lib/utils/irqchip/fdt_irqchip_plic.c static const struct fdt_match irqchip_plic_match[] = { · line 166
Quoted 2 lines
lib/utils/irqchip/fdt_irqchip_plic.c +0
-0@@ -165,6 +165,8 @@ static const struct fdt_match irqchip_plic_match[] = { { .compatible = "sifive,plic-1.0.0" }, { .compatible = "thead,c900-plic",
c900 means c906, c908, c910. There is no c900 model, it's a series name.
But still, thx for the patch. If you want to join T-HEAD SoC maintenance work, please contact Wei Fu. Contributions of any are welcome.
Quoted 9 lines
lib/utils/irqchip/fdt_irqchip_plic.c +2
-1.data = thead_plic_plat_init }, + { .compatible = "thead,c910-plic", + .data = thead_plic_plat_init }, {/* sentinel */ } }; --2.40.1
Signature · 2 lines
Best Regards Guo Ren
PATCH 1/1 lib: utils/irqchip: plic: support T-HEAD C910 PLIC
Quoted 5 lines · Guo Ren
Quoted 4 lines · On Mon, May 8, 2023 at 2:39?AM Jisheng Zhang <[email protected]> wrote:
T-HEAD's C910 PLIC still needs the delegation bit setting to allow access from S-mode, but it doesn't need the edge quirk. To distinguish it from C906, add C910 binding.
Hi all,
This patch isn't needed any more, plz ignore it.
Quoted 6 lines
Quoted 6 lines
Signed-off-by Jisheng Zhang <[email protected]>--- lib/utils/irqchip/fdt_irqchip_plic.c | 2 ++ 1 file changed, 2 insertions(+)
Quoted 8 lines
lib/utils/irqchip/fdt_irqchip_plic.c static const struct fdt_match irqchip_plic_match[] = { · line 166
Quoted 7 lines
lib/utils/irqchip/fdt_irqchip_plic.c +0
-0@@ -165,6 +165,8 @@ static const struct fdt_match irqchip_plic_match[] = { { .compatible = "sifive,plic-1.0.0" }, { .compatible = "thead,c900-plic",c900 means c906, c908, c910. There is no c900 model, it's a series name.
I knew C900 is the series name, I made a mistake when understanding the PLIC edge quirk.
Quoted 5 lines
But still, thx for the patch. If you want to join T-HEAD SoC maintenance work, please contact Wei Fu. Contributions of any are welcome.
hhh, I'm a riscv enthusiast, and got a Lichee Pi 4A board, just want to mainline its support.