blob: 707f56358dc49877d6aa519bcf2cda2c931d5686 [file] [log] [blame]
Yinbo Zhub82621a2022-11-11 13:42:00 +08001# 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.