OSDN Git Service

soc: loongson: add GUTS driver for loongson-2 platforms
authorYinbo Zhu <zhuyinbo@loongson.cn>
Fri, 11 Nov 2022 05:42:00 +0000 (13:42 +0800)
committerArnd Bergmann <arnd@arndb.de>
Mon, 14 Nov 2022 15:01:32 +0000 (16:01 +0100)
commitb82621ac8450d0de7570506c59f298dbf99ded64
tree4abca6ba036c3dfdbac66364097c2668dbd2243a
parent4c1c97fc70e44aa39cd409e952eba3ed35c429fd
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: Yinbo Zhu <zhuyinbo@loongson.cn>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
MAINTAINERS
drivers/soc/Kconfig
drivers/soc/Makefile
drivers/soc/loongson/Kconfig [new file with mode: 0644]
drivers/soc/loongson/Makefile [new file with mode: 0644]
drivers/soc/loongson/loongson2_guts.c [new file with mode: 0644]