diff options
author | Samuel Holland <samuel.holland@sifive.com> | 2024-11-04 20:10:05 -0800 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2024-11-28 11:28:38 +0530 |
commit | c6c22f00f457264560ca05414e9f9e0c5c3438db (patch) | |
tree | 7a9cf27f385ae24cb1ac1ce5a007c12e0e6c7481 /platform/generic/platform.c | |
parent | 69448a07906523c9c798c8f1d02a7be52e96b38e (diff) | |
download | opensbi-c6c22f00f457264560ca05414e9f9e0c5c3438db.zip opensbi-c6c22f00f457264560ca05414e9f9e0c5c3438db.tar.gz opensbi-c6c22f00f457264560ca05414e9f9e0c5c3438db.tar.bz2 |
lib: utils/irqchip: plic: Common PM save/restore
Move the PLIC save/restore functions inside the driver, so they can be
reused on any platform that needs them. The memory needed to store the
PLIC context is also allocated by the driver. The PM data cannot be
completely encapsulated, as some platforms (including Allwinner D1) need
to program the IRQ enable status to a sideband interrupt controller for
wakeup capability.
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'platform/generic/platform.c')
0 files changed, 0 insertions, 0 deletions