]> www.infradead.org Git - users/jedix/linux-maple.git/commit
MIPS: Loongson64: Implement PM suspend for LEFI firmware
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Tue, 7 May 2024 15:22:01 +0000 (16:22 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 11 Jun 2024 11:03:50 +0000 (13:03 +0200)
commit68557c59a550c6afff714e54709e9c5511f39135
tree8bfbe524b8792fecd05c3e743bfda07f1408e89b
parent2226d454db931455018521db13ab763d276952a7
MIPS: Loongson64: Implement PM suspend for LEFI firmware

Implement PM suspend for LEFI firmware.
Entering STR (Suspend to RAM) is as simple as save our context
then go to a firmware vector.
Wake is a little bit treaky as we need to setup some CP0 status
first, which can be done with smp_slave_setup.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/loongson64/Makefile
arch/mips/loongson64/pm.c
arch/mips/loongson64/sleeper.S [new file with mode: 0644]