mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-28 09:22:08 +00:00

The connected PMU contains several useful nvmem cells such as RTC offset, boot failure counters, reboot/shutdown selector, and a few others. In addition M3+ machines have their USB-PD controller connected via SPMI. Signed-off-by: Jean-Francois Bortolotti <jeff@borto.fr> Reviewed-by: Sven Peter <sven@svenpeter.dev> Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Co-developed-by: Sasha Finkelstein <fnkl.kernel@gmail.com> Signed-off-by: Sasha Finkelstein <fnkl.kernel@gmail.com> Link: https://lore.kernel.org/r/20250409-spmi-v4-2-eb81ecfd1f64@gmail.com Reviewed-by: Neal Gompa <neal@gompa.dev> Signed-off-by: Stephen Boyd <sboyd@kernel.org> Link: https://lore.kernel.org/r/20250518032330.2959766-4-sboyd@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
58 lines
1.7 KiB
Plaintext
58 lines
1.7 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# SPMI driver configuration
|
|
#
|
|
menuconfig SPMI
|
|
tristate "SPMI support"
|
|
help
|
|
SPMI (System Power Management Interface) is a two-wire
|
|
serial interface between baseband and application processors
|
|
and Power Management Integrated Circuits (PMIC).
|
|
|
|
if SPMI
|
|
|
|
config SPMI_APPLE
|
|
tristate "Apple SoC SPMI Controller platform driver"
|
|
depends on ARCH_APPLE || COMPILE_TEST
|
|
help
|
|
If you say yes to this option, support will be included for the
|
|
SPMI controller present on many Apple SoCs, including the
|
|
t8103 (M1) and t600x (M1 Pro/Max).
|
|
|
|
config SPMI_HISI3670
|
|
tristate "Hisilicon 3670 SPMI Controller"
|
|
select IRQ_DOMAIN_HIERARCHY
|
|
depends on ARM64 || COMPILE_TEST
|
|
depends on HAS_IOMEM
|
|
help
|
|
If you say yes to this option, support will be included for the
|
|
built-in SPMI PMIC Arbiter interface on Hisilicon 3670
|
|
processors.
|
|
|
|
config SPMI_MSM_PMIC_ARB
|
|
tristate "Qualcomm MSM SPMI Controller (PMIC Arbiter)"
|
|
select IRQ_DOMAIN_HIERARCHY
|
|
depends on ARCH_QCOM || COMPILE_TEST
|
|
depends on HAS_IOMEM
|
|
default ARCH_QCOM
|
|
help
|
|
If you say yes to this option, support will be included for the
|
|
built-in SPMI PMIC Arbiter interface on Qualcomm MSM family
|
|
processors.
|
|
|
|
This is required for communicating with Qualcomm PMICs and
|
|
other devices that have the SPMI interface.
|
|
|
|
config SPMI_MTK_PMIF
|
|
tristate "Mediatek SPMI Controller (PMIC Arbiter)"
|
|
depends on ARCH_MEDIATEK || COMPILE_TEST
|
|
help
|
|
If you say yes to this option, support will be included for the
|
|
built-in SPMI PMIC Arbiter interface on Mediatek family
|
|
processors.
|
|
|
|
This is required for communicating with Mediatek PMICs and
|
|
other devices that have the SPMI interface.
|
|
|
|
endif
|