[PATCH v2] lib: utils/irqchip: Automatically delegate T-HEAD PLIC access
Bin Meng
bmeng.cn at gmail.com
Sun Oct 17 22:50:54 PDT 2021
On Mon, Oct 18, 2021 at 1:34 PM Samuel Holland <samuel at sholland.org> wrote:
>
> The T-HEAD PLIC implementation requires setting a delegation bit
> to allow access from S-mode. Now that the T-HEAD PLIC has its own
> compatible string, set this bit automatically from the PLIC driver,
> instead of reaching into the PLIC's MMIO space from another driver.
>
> Signed-off-by: Samuel Holland <samuel at sholland.org>
>
> ---
>
> Changes in v2:
> - Use the thead,c900-plic compatible instead of the D1 compatible.
> - Also apply this change to other T-HEAD device tree examples.
> - Remove the plic-delegate code from the thead,reset-sample driver.
> - Drop the return value from thead_plic_plat_init().
>
> The compatible string is added in the patch series here:
> https://lore.kernel.org/linux-riscv/20211016032200.2869998-1-guoren@kernel.org/T/
> ---
> docs/platform/thead-c9xx.md | 12 +++---------
> lib/utils/irqchip/fdt_irqchip_plic.c | 15 +++++++++++++++
> lib/utils/reset/fdt_reset_thead.c | 8 --------
> 3 files changed, 18 insertions(+), 17 deletions(-)
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
More information about the opensbi
mailing list