irqchip/irq-sifive-plic: Add syscore callbacks for hibernation
authormason.huo <mason.huo@starfivetech.com>
Tue, 3 Jan 2023 05:39:30 +0000 (13:39 +0800)
committermason.huo <mason.huo@starfivetech.com>
Thu, 5 Jan 2023 06:27:34 +0000 (14:27 +0800)
commit771eee9d83598090abea49309642b7cbdd028bc3
treece3663d922fe050b595d5bb6b51b7ca63fb530f2
parent8711b80529b62cecb81bfaf33c16a35e9c92901f
irqchip/irq-sifive-plic: Add syscore callbacks for hibernation

The priority and enable registers of plic will be reset
during hibernation power cycle in poweroff mode,
add the syscore callbacks to save/restore those registers.

Signed-off-by: mason.huo <mason.huo@starfivetech.com>
drivers/irqchip/irq-sifive-plic.c [changed mode: 0755->0644]