Commit b82621ac authored by Yinbo Zhu's avatar Yinbo Zhu Committed by Arnd Bergmann
Browse files

soc: loongson: add GUTS driver for loongson-2 platforms



The global utilities block controls PCIE device enabling, alternate
function selection for multiplexed signals, consistency of HDA, USB
and PCIE, configuration of memory controller, rtc controller, lio
controller, and clock control.

This patch adds a driver to manage and access global utilities block
for LoongArch architecture Loongson-2 SoCs. Initially only reading SVR
and registering soc device are supported. Other guts accesses, such
as reading firmware configuration by default, should eventually be
added into this driver as well.

Signed-off-by: default avatarYinbo Zhu <zhuyinbo@loongson.cn>
Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 4c1c97fc
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -12008,6 +12008,12 @@ F: drivers/*/*loongarch*
F:	Documentation/loongarch/
F:	Documentation/translations/zh_CN/loongarch/
LOONGSON-2 SOC SERIES GUTS DRIVER
M:	Yinbo Zhu <zhuyinbo@loongson.cn>
L:	loongarch@lists.linux.dev
S:	Maintained
F:	drivers/soc/loongson/loongson2_guts.c
LSILOGIC MPT FUSION DRIVERS (FC/SAS/SPI)
M:	Sathya Prakash <sathya.prakash@broadcom.com>
M:	Sreekanth Reddy <sreekanth.reddy@broadcom.com>
+1 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ source "drivers/soc/fujitsu/Kconfig"
source "drivers/soc/imx/Kconfig"
source "drivers/soc/ixp4xx/Kconfig"
source "drivers/soc/litex/Kconfig"
source "drivers/soc/loongson/Kconfig"
source "drivers/soc/mediatek/Kconfig"
source "drivers/soc/microchip/Kconfig"
source "drivers/soc/pxa/Kconfig"
+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ obj-y += imx/
obj-y				+= ixp4xx/
obj-$(CONFIG_SOC_XWAY)		+= lantiq/
obj-$(CONFIG_LITEX_SOC_CONTROLLER) += litex/
obj-y				+= loongson/
obj-y				+= mediatek/
obj-y				+= microchip/
obj-y				+= pxa/
+18 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0+
#
# Loongson-2 series SoC drivers
#

config LOONGSON2_GUTS
	tristate "Loongson-2 SoC Global UtiliTieS (GUTS) register block"
	depends on LOONGARCH || COMPILE_TEST
	select SOC_BUS
	help
	 The global utilities block controls PCIE device enabling, alternate
	 function selection for multiplexed signals, consistency of HDA, USB
	 and PCIE, configuration of memory controller, rtc controller, lio
	 controller, and clock control. This patch adds a driver to manage
	 and access global utilities block for LoongArch architecture Loongson-2
	 SoCs. Initially only reading SVR and registering soc device are
	 supported. Other guts accesses, such as reading firmware configuration
	 by default, should eventually be added into this driver as well.
+6 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0+
#
# Makefile for the Linux Kernel SoC Loongson-2 specific device drivers
#

obj-$(CONFIG_LOONGSON2_GUTS)		+= loongson2_guts.o
Loading