1b82621acSYinbo Zhu# SPDX-License-Identifier: GPL-2.0+ 2b82621acSYinbo Zhu# 3b82621acSYinbo Zhu# Loongson-2 series SoC drivers 4b82621acSYinbo Zhu# 5b82621acSYinbo Zhu 6b82621acSYinbo Zhuconfig LOONGSON2_GUTS 7b82621acSYinbo Zhu tristate "Loongson-2 SoC Global UtiliTieS (GUTS) register block" 8b82621acSYinbo Zhu depends on LOONGARCH || COMPILE_TEST 9b82621acSYinbo Zhu select SOC_BUS 10b82621acSYinbo Zhu help 11b82621acSYinbo Zhu The global utilities block controls PCIE device enabling, alternate 12b82621acSYinbo Zhu function selection for multiplexed signals, consistency of HDA, USB 13b82621acSYinbo Zhu and PCIE, configuration of memory controller, rtc controller, lio 14b82621acSYinbo Zhu controller, and clock control. This patch adds a driver to manage 15b82621acSYinbo Zhu and access global utilities block for LoongArch architecture Loongson-2 16b82621acSYinbo Zhu SoCs. Initially only reading SVR and registering soc device are 17b82621acSYinbo Zhu supported. Other guts accesses, such as reading firmware configuration 18b82621acSYinbo Zhu by default, should eventually be added into this driver as well. 19*67694c07SYinbo Zhu 20*67694c07SYinbo Zhuconfig LOONGSON2_PM 21*67694c07SYinbo Zhu bool "Loongson-2 SoC Power Management Controller Driver" 22*67694c07SYinbo Zhu depends on LOONGARCH && OF 23*67694c07SYinbo Zhu help 24*67694c07SYinbo Zhu The Loongson-2's power management controller was ACPI, supports ACPI 25*67694c07SYinbo Zhu S2Idle (Suspend To Idle), ACPI S3 (Suspend To RAM), ACPI S4 (Suspend To 26*67694c07SYinbo Zhu Disk), ACPI S5 (Soft Shutdown) and supports multiple wake-up methods 27*67694c07SYinbo Zhu (USB, GMAC, PWRBTN, etc.). This driver was to add power management 28*67694c07SYinbo Zhu controller support that base on dts for Loongson-2 series SoCs. 29