soc: loongson2_pm: add power management support
authorYinbo Zhu <zhuyinbo@loongson.cn>
Thu, 3 Aug 2023 06:37:03 +0000 (14:37 +0800)
committerArnd Bergmann <arnd@arndb.de>
Tue, 22 Aug 2023 00:52:46 +0000 (20:52 -0400)
commit67694c076bd7d6b8b73c59d4881822f0493caf35
tree44960ab378575312399854d197c2c4759428fcdf
parent6054a676e969b4bbf69be3f1dd7aba2443102848
soc: loongson2_pm: add power management support

The Loongson-2's power management controller was ACPI, supports ACPI
S2Idle (Suspend To Idle), ACPI S3 (Suspend To RAM), ACPI S4 (Suspend To
Disk), ACPI S5 (Soft Shutdown) and supports multiple wake-up methods
(USB, GMAC, PWRBTN, etc.). This driver was to add power management
controller support that base on dts for Loongson-2 series SoCs.

Co-developed-by: Liu Yun <liuyun@loongson.cn>
Signed-off-by: Liu Yun <liuyun@loongson.cn>
Co-developed-by: Liu Peibao <liupeibao@loongson.cn>
Signed-off-by: Liu Peibao <liupeibao@loongson.cn>
Cc: soc@kernel.org
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn>
Link: https://lore.kernel.org/r/20230803063703.5659-3-zhuyinbo@loongson.cn
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
MAINTAINERS
drivers/soc/loongson/Kconfig
drivers/soc/loongson/Makefile
drivers/soc/loongson/loongson2_pm.c [new file with mode: 0644]