• Yinbo Zhu's avatar
    soc: loongson: add GUTS driver for loongson-2 platforms · b82621ac
    Yinbo Zhu authored
    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>
    b82621ac
loongson2_guts.c 4.63 KB