forked from Mirrors/opensbi
Revert "lib: utils/irqchip: Match against more specific compatible strings first"
This reverts commit 6019259dfb
.
Now that fdt_driver_init_by_offset() respects the compatible string
fallback priority order, this workaround is no longer necessary.
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:

committed by
Anup Patel

parent
0ffe265fd9
commit
98c0a3860a
@@ -98,16 +98,10 @@ fail_free_data:
|
|||||||
|
|
||||||
static const struct fdt_match irqchip_plic_match[] = {
|
static const struct fdt_match irqchip_plic_match[] = {
|
||||||
{ .compatible = "andestech,nceplic100" },
|
{ .compatible = "andestech,nceplic100" },
|
||||||
|
{ .compatible = "riscv,plic0" },
|
||||||
{ .compatible = "sifive,plic-1.0.0" },
|
{ .compatible = "sifive,plic-1.0.0" },
|
||||||
{ .compatible = "thead,c900-plic",
|
{ .compatible = "thead,c900-plic",
|
||||||
.data = (void *)(PLIC_FLAG_THEAD_DELEGATION | PLIC_FLAG_ENABLE_PM) },
|
.data = (void *)(PLIC_FLAG_THEAD_DELEGATION | PLIC_FLAG_ENABLE_PM) },
|
||||||
|
|
||||||
/*
|
|
||||||
* We keep the generic RISC-V PLIC at the end.
|
|
||||||
* This ensures we match against more specific options first.
|
|
||||||
* (This is important if the PLIC has quirks, like the T-HEAD PLIC.)
|
|
||||||
*/
|
|
||||||
{ .compatible = "riscv,plic0" },
|
|
||||||
{ /* sentinel */ }
|
{ /* sentinel */ }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user