lib: utils: Allow PLIC functions to be used for multiple PLICs
authorAnup Patel <anup.patel@wdc.com>
Tue, 12 May 2020 07:27:52 +0000 (12:57 +0530)
committerAnup Patel <anup@brainfault.org>
Sat, 23 May 2020 05:06:29 +0000 (10:36 +0530)
commit446a9c6d1eb97fcedd6a94ac76d15e941a6087a8
treeb8b8d6e8fec3fb2caf01913b0f2139c4f8695846
parent73d6ef3b2933ccf0b3a8a0ba110bf53ad9720b51
lib: utils: Allow PLIC functions to be used for multiple PLICs

We extend all PLIC functions to have a "struct plic_data *"
parameter pointing to PLIC details. This allows platforms to
use these functions for multiple PLIC instances.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
12 files changed:
include/sbi_utils/fdt/fdt_helper.h
include/sbi_utils/irqchip/plic.h
lib/utils/fdt/fdt_helper.c
lib/utils/irqchip/fdt_irqchip_plic.c
lib/utils/irqchip/plic.c
platform/andes/ae350/platform.c
platform/fpga/ariane/platform.c
platform/fpga/openpiton/platform.c
platform/kendryte/k210/platform.c
platform/nuclei/ux600/platform.c
platform/sifive/fu540/platform.c
platform/template/platform.c