xref: /openbmc/linux/drivers/soc/loongson/Kconfig (revision 8e4a28f9)
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.
1967694c07SYinbo Zhu
2067694c07SYinbo Zhuconfig LOONGSON2_PM
2167694c07SYinbo Zhu	bool "Loongson-2 SoC Power Management Controller Driver"
2267694c07SYinbo Zhu	depends on LOONGARCH && OF
23*8e4a28f9SBinbin Zhou	depends on INPUT=y
2467694c07SYinbo Zhu	help
2567694c07SYinbo Zhu	  The Loongson-2's power management controller was ACPI, supports ACPI
2667694c07SYinbo Zhu	  S2Idle (Suspend To Idle), ACPI S3 (Suspend To RAM), ACPI S4 (Suspend To
2767694c07SYinbo Zhu	  Disk), ACPI S5 (Soft Shutdown) and supports multiple wake-up methods
2867694c07SYinbo Zhu	  (USB, GMAC, PWRBTN, etc.). This driver was to add power management
2967694c07SYinbo Zhu	  controller support that base on dts for Loongson-2 series SoCs.
30