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