diff options
author | Tom Rini <trini@konsulko.com> | 2021-06-17 08:44:23 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-06-17 08:44:23 -0400 |
commit | 7e585b5a61cfa68e3f76e60fd9f373367c8566a9 (patch) | |
tree | 169339246cb3d71c69cc39b357af62785e82aea3 /arch/riscv/lib/andes_plic.c | |
parent | b2c4b7f66553401e0eb1176da8b97a1511f26b2c (diff) | |
parent | 62ce0a02f9e5bda51a05c5f735e5a75f6c4bbb54 (diff) |
Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-riscv
- ae350 related dts fixes.
Diffstat (limited to 'arch/riscv/lib/andes_plic.c')
-rw-r--r-- | arch/riscv/lib/andes_plic.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/riscv/lib/andes_plic.c b/arch/riscv/lib/andes_plic.c index 221a5fe324e..5e113ee8c94 100644 --- a/arch/riscv/lib/andes_plic.c +++ b/arch/riscv/lib/andes_plic.c @@ -105,9 +105,11 @@ int riscv_clear_ipi(int hart) int riscv_get_ipi(int hart, int *pending) { + unsigned int ipi = (SEND_IPI_TO_HART(hart) << (8 * gd->arch.boot_hart)); + *pending = readl((void __iomem *)PENDING_REG(gd->arch.plic, gd->arch.boot_hart)); - *pending = !!(*pending & SEND_IPI_TO_HART(hart)); + *pending = !!(*pending & ipi); return 0; } |