spl: qcom: make Qualcomm drivers buildable in SPL
Subsystems (6)
cover spl: qcom: make Qualcomm drivers buildable in SPL
Make the Qualcomm GENI, pinctrl, serial, PMIC, SMEM and SPMI SDAM drivers buildable in SPL. Each driver either gets an SPL_ Kconfig symbol or has its Makefile rule switched to $(PHASE_), so a Qualcomm SPL defconfig can pull them in.
The SDAM patch depends on following series:
https://lore.kernel.org/u-boot/[email protected]/
---
Balaji Selvanathan (6):
misc: qcom_geni: add SPL support for Qualcomm GENI driver
serial: msm: add SPL support for Qualcomm serial drivers
pinctrl: qcom: add SPL support for Qualcomm pinctrl drivers
power: pmic: use $(PHASE_) macro for Qualcomm PMIC
soc: qcom: Enable phase-aware SMEM driver compilation
drivers: misc: add $(PHASE_) for QCOM_SPMI_SDAM config
drivers/misc/Kconfig | 10 ++ drivers/misc/Makefile | 4 +- drivers/pinctrl/qcom/Kconfig | 206 ++++++++++++++++++++++++++++++++++++++++++ drivers/pinctrl/qcom/Makefile | 50 +++++----- drivers/power/pmic/Makefile | 2 +- drivers/serial/Kconfig | 20 ++++ drivers/serial/Makefile | 4 +- drivers/soc/qcom/Kconfig | 7 ++ drivers/soc/qcom/Makefile | 2 +- 9 files changed, 274 insertions(+), 31 deletions(-)
---
base-commit: cd3b33872cd10cc1a8093c942763affc265063fa
change-id: 20261019-spl_qcom_phase-2663085b56b0
Best regards,
Signature · 1 line
Balaji Selvanathan <[email protected]>
PATCH 1/6 misc: qcom_geni: add SPL support for Qualcomm GENI driver
Add a new SPL_QCOM_GENI Kconfig symbol to enable the driver in SPL, and update the Makefile to use the $(PHASE_) macro so qcom_geni.o is built for both SPL and non-SPL phases
--- drivers/misc/Kconfig | 10 ++++++++++ drivers/misc/Makefile | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-)
drivers/misc/Kconfig +10 -0
@@ -102,6 +102,16 @@ config QCOM_GENI for providing a common interface for various peripherals like UART, I2C, SPI, etc. +config SPL_QCOM_GENI + bool "Qualcomm Generic Interface (GENI) driver in SPL" + depends on SPL_MISC + select SPL_EFI_PARTITION + select SPL_PARTITION_TYPE_GUID + help + Enable support for Qualcomm GENI and it's peripherals in SPL. GENI is responseible + for providing a common interface for various peripherals like UART, I2C, SPI, + etc. + config QCOM_SPMI_SDAM bool "Qualcomm SPMI SDAM NVMEM driver" depends on MISC && NVMEM && SPMI
drivers/misc/Makefile +1 -1
@@ -66,7 +66,7 @@ obj-$(CONFIG_QFW_MMIO) += qfw_mmio.o obj-$(CONFIG_QFW_SMBIOS) += qfw_smbios.o obj-$(CONFIG_SANDBOX) += qfw_sandbox.o endif -obj-$(CONFIG_QCOM_GENI) += qcom_geni.o +obj-$(CONFIG_$(PHASE_)QCOM_GENI) += qcom_geni.o obj-$(CONFIG_QCOM_SPMI_SDAM) += qcom-spmi-sdam.o obj-$(CONFIG_$(PHASE_)ROCKCHIP_EFUSE) += rockchip-efuse.o obj-$(CONFIG_$(PHASE_)ROCKCHIP_OTP) += rockchip-otp.o
Signature · 1 line
2.34.1
PATCH 2/6 serial: msm: add SPL support for Qualcomm serial drivers
In reply to Balaji SelvanathanAdd SPL_MSM_SERIAL and SPL_MSM_GENI_SERIAL Kconfig symbols to enable the Qualcomm UART DM and GENI UART drivers in SPL. Update the Makefile to use the $(PHASE_) macro so both serial objects build for both SPL and non-SPL phases.
--- drivers/serial/Kconfig | 20 ++++++++++++++++++++ drivers/serial/Makefile | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-)
drivers/serial/Kconfig +20 -0
@@ -1011,6 +1011,15 @@ config MSM_SERIAL for example APQ8016 and MSM8916. Single baudrate is supported in current implementation (115200). +config SPL_MSM_SERIAL + bool "Qualcomm on-chip UART" + depends on SPL_DM_SERIAL + help + Support Data Mover UART used on Qualcomm Snapdragon SoCs for SPL. + It should support all Qualcomm devices with UARTDM version 1.4, + for example APQ8016 and MSM8916. + Single baudrate is supported in current implementation (115200). + config MSM_GENI_SERIAL bool "Qualcomm on-chip GENI UART" depends on QCOM_GENI
@@ -1022,6 +1031,17 @@ config MSM_GENI_SERIAL Driver works in FIFO mode. Multiple baudrates supported. +config SPL_MSM_GENI_SERIAL + bool "Qualcomm on-chip GENI UART in SPL" + depends on SPL_QCOM_GENI + help + Support UART based on Generic Interface (GENI) Serial Engine (SE), + used on Qualcomm Snapdragon SoCs in SPL. Should support all qualcomm SOCs + with Qualcomm Universal Peripheral (QUP) Wrapper cores, + i.e. newer ones, starting from SDM845. + Driver works in FIFO mode. + Multiple baudrates supported. + config MXS_AUART_SERIAL bool "MXS AUART" depends on DM_SERIAL
drivers/serial/Makefile +2 -2
@@ -43,8 +43,8 @@ obj-$(CONFIG_STI_ASC_SERIAL) += serial_sti_asc.o obj-$(CONFIG_PIC32_SERIAL) += serial_pic32.o obj-$(CONFIG_BCM283X_MU_SERIAL) += serial_bcm283x_mu.o obj-$(CONFIG_BCM283X_PL011_SERIAL) += serial_bcm283x_pl011.o -obj-$(CONFIG_MSM_SERIAL) += serial_msm.o -obj-$(CONFIG_MSM_GENI_SERIAL) += serial_msm_geni.o +obj-$(CONFIG_$(PHASE_)MSM_SERIAL) += serial_msm.o +obj-$(CONFIG_$(PHASE_)MSM_GENI_SERIAL) += serial_msm_geni.o obj-$(CONFIG_MXS_AUART_SERIAL) += serial_mxs.o obj-$(CONFIG_MVEBU_A3700_UART) += serial_mvebu_a3700.o obj-$(CONFIG_MPC8XX_CONS) += serial_mpc8xx.o
Signature · 1 line
2.34.1
PATCH 3/6 pinctrl: qcom: add SPL support for Qualcomm pinctrl drivers
In reply to Balaji SelvanathanAdd SPL_PINCTRL_QCOM and SPL_PINCTRL_QCOM_GENERIC Kconfig symbols, along with per-SoC SPL_PINCTRL_QCOM_<SOC> entries for all existing Qualcomm pinctrl drivers. Update the Makefile to use the $(PHASE_) macro so pinctrl objects build for both SPL and non-SPL phases.
--- drivers/pinctrl/qcom/Kconfig | 206 ++++++++++++++++++++++++++++++++++++++++++ drivers/pinctrl/qcom/Makefile | 50 +++++----- 2 files changed, 231 insertions(+), 25 deletions(-)
drivers/pinctrl/qcom/Kconfig +206 -0
@@ -4,6 +4,10 @@ config PINCTRL_QCOM depends on PINCTRL_GENERIC def_bool n +config SPL_PINCTRL_QCOM + depends on SPL_PINCTRL_GENERIC + def_bool n + menu "Qualcomm pinctrl drivers" config PINCTRL_QCOM_GENERIC
@@ -14,6 +18,16 @@ config PINCTRL_QCOM_GENERIC This is useful for generic Qualcomm defconfigs that support multiple SoCs. Individual drivers can still be disabled if needed. +config SPL_PINCTRL_QCOM_GENERIC + bool "Enable all Qualcomm pinctrl drivers in SPL by default" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_GENERIC. + Say Y here to enable all Qualcomm pinctrl drivers in SPL by default. + This is useful for generic Qualcomm SPL defconfigs that support + multiple SoCs. Individual SPL drivers can still be disabled if needed. + config PINCTRL_QCOM_APQ8016 bool "Qualcomm APQ8016 Pinctrl" default y if PINCTRL_QCOM_GENERIC
@@ -22,6 +36,14 @@ config PINCTRL_QCOM_APQ8016 Say Y here to enable support for pinctrl on the MSM8916 / APQ8016 Snapdragon 410 SoC, as well as the associated GPIO driver. +config SPL_PINCTRL_QCOM_APQ8016 + bool "Qualcomm APQ8016 Pinctrl in SPL" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_APQ8016. + See the help of PINCTRL_QCOM_APQ8016 for details. + config PINCTRL_QCOM_APQ8096 bool "Qualcomm APQ8096 Pinctrl" default y if PINCTRL_QCOM_GENERIC
@@ -30,6 +52,14 @@ config PINCTRL_QCOM_APQ8096 Say Y here to enable support for pinctrl on the MSM8996 / APQ8096 Snapdragon 820 SoC, as well as the associated GPIO driver. +config SPL_PINCTRL_QCOM_APQ8096 + bool "Qualcomm APQ8096 Pinctrl in SPL" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_APQ8096. + See the help of PINCTRL_QCOM_APQ8096 for details. + config PINCTRL_QCOM_IPQ4019 bool "Qualcomm IPQ4019 Pinctrl" default y if PINCTRL_QCOM_GENERIC
@@ -38,6 +68,14 @@ config PINCTRL_QCOM_IPQ4019 Say Y here to enable support for pinctrl on the IPQ4019 SoC, as well as the associated GPIO driver. +config SPL_PINCTRL_QCOM_IPQ4019 + bool "Qualcomm IPQ4019 Pinctrl in SPL" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_IPQ4019. + See the help of PINCTRL_QCOM_IPQ4019 for details. + config PINCTRL_QCOM_IPQ5424 bool "Qualcomm IPQ5424 Pinctrl" default y if PINCTRL_QCOM_GENERIC
@@ -46,6 +84,14 @@ config PINCTRL_QCOM_IPQ5424 Say Y here to enable support for pinctrl on the IPQ5424 SoC, as well as the associated GPIO driver. +config SPL_PINCTRL_QCOM_IPQ5424 + bool "Qualcomm IPQ5424 Pinctrl in SPL" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_IPQ5424. + See the help of PINCTRL_QCOM_IPQ5424 for details. + config PINCTRL_QCOM_IPQ9574 bool "Qualcomm IPQ9574 Pinctrl" default y if PINCTRL_QCOM_GENERIC
@@ -54,6 +100,14 @@ config PINCTRL_QCOM_IPQ9574 Say Y here to enable support for pinctrl on the IPQ9574 SoC, as well as the associated GPIO driver. +config SPL_PINCTRL_QCOM_IPQ9574 + bool "Qualcomm IPQ9574 Pinctrl in SPL" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_IPQ9574. + See the help of PINCTRL_QCOM_IPQ9574 for details. + config PINCTRL_QCOM_MILOS bool "Qualcomm Milos Pinctrl" default y if PINCTRL_QCOM_GENERIC
@@ -62,6 +116,14 @@ config PINCTRL_QCOM_MILOS Say Y here to enable support for pinctrl on the Snapdragon Milos SoC, as well as the associated GPIO driver. +config SPL_PINCTRL_QCOM_MILOS + bool "Qualcomm Milos Pinctrl in SPL" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_MILOS. + See the help of PINCTRL_QCOM_MILOS for details. + config PINCTRL_QCOM_QCM2290 bool "Qualcomm QCM2290 Pinctrl" default y if PINCTRL_QCOM_GENERIC
@@ -70,6 +132,14 @@ config PINCTRL_QCOM_QCM2290 Say Y here to enable support for pinctrl on the Snapdragon QCM2290 SoC, as well as the associated GPIO driver. +config SPL_PINCTRL_QCOM_QCM2290 + bool "Qualcomm QCM2290 Pinctrl in SPL" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_QCM2290. + See the help of PINCTRL_QCOM_QCM2290 for details. + config PINCTRL_QCOM_QCS404 bool "Qualcomm QCS404 Pinctrl" default y if PINCTRL_QCOM_GENERIC
@@ -78,6 +148,14 @@ config PINCTRL_QCOM_QCS404 Say Y here to enable support for pinctrl on the Snapdragon QCS404 SoC, as well as the associated GPIO driver. +config SPL_PINCTRL_QCOM_QCS404 + bool "Qualcomm QCS404 Pinctrl in SPL" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_QCS404. + See the help of PINCTRL_QCOM_QCS404 for details. + config PINCTRL_QCOM_QCS615 bool "Qualcomm QCS615 Pinctrl" default y if PINCTRL_QCOM_GENERIC
@@ -86,6 +164,14 @@ config PINCTRL_QCOM_QCS615 Say Y here to enable support for pinctrl on the Snapdragon QCS615 SoC, as well as the associated GPIO driver. +config SPL_PINCTRL_QCOM_QCS615 + bool "Qualcomm QCS615 Pinctrl in SPL" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_QCS615. + See the help of PINCTRL_QCOM_QCS615 for details. + config PINCTRL_QCOM_SA8775P bool "Qualcomm SA8775P Pinctrl" default y if PINCTRL_QCOM_GENERIC
@@ -94,6 +180,14 @@ config PINCTRL_QCOM_SA8775P Say Y here to enable support for pinctrl on the Snapdragon SA8775P SoC, as well as the associated GPIO driver. +config SPL_PINCTRL_QCOM_SA8775P + bool "Qualcomm SA8775P Pinctrl in SPL" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_SA8775P. + See the help of PINCTRL_QCOM_SA8775P for details. + config PINCTRL_QCOM_SC7180 bool "Qualcomm SC7180 Pinctrl" select PINCTRL_QCOM
@@ -101,6 +195,14 @@ config PINCTRL_QCOM_SC7180 Say Y here to enable support for pinctrl on the Snapdragon SC7180 SoC, as well as the associated GPIO driver. +config SPL_PINCTRL_QCOM_SC7180 + bool "Qualcomm SC7180 Pinctrl in SPL" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_SC7180. + See the help of PINCTRL_QCOM_SC7180 for details. + config PINCTRL_QCOM_SC7280 bool "Qualcomm SC7280/QCM6490 Pinctrl" default y if PINCTRL_QCOM_GENERIC
@@ -108,6 +210,14 @@ config PINCTRL_QCOM_SC7280 help Say Y here to enable support for pinctrl on the Snapdragon SC7280 SoC, +config SPL_PINCTRL_QCOM_SC7280 + bool "Qualcomm SC7280/QCM6490 Pinctrl in SPL" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_SC7280. + See the help of PINCTRL_QCOM_SC7280 for details. + config PINCTRL_QCOM_SDM670 bool "Qualcomm SDM670 Pinctrl" default y if PINCTRL_QCOM_GENERIC
@@ -116,6 +226,14 @@ config PINCTRL_QCOM_SDM670 Say Y here to enable support for pinctrl on the Snapdragon SDM670 SoC, as well as the associated GPIO driver. +config SPL_PINCTRL_QCOM_SDM670 + bool "Qualcomm SDM670 Pinctrl in SPL" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_SDM670. + See the help of PINCTRL_QCOM_SDM670 for details. + config PINCTRL_QCOM_SDM660 bool "Qualcomm SDM630/660 Pinctrl" default y if PINCTRL_QCOM_GENERIC
@@ -124,6 +242,14 @@ config PINCTRL_QCOM_SDM660 Say Y here to enable support for pinctrl on the Snapdragon 630/636/660 SoCs, as well as the associated GPIO driver. +config SPL_PINCTRL_QCOM_SDM660 + bool "Qualcomm SDM630/660 Pinctrl in SPL" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_SDM660. + See the help of PINCTRL_QCOM_SDM660 for details. + config PINCTRL_QCOM_SDM845 bool "Qualcomm SDM845 Pinctrl" default y if PINCTRL_QCOM_GENERIC
@@ -132,6 +258,14 @@ config PINCTRL_QCOM_SDM845 Say Y here to enable support for pinctrl on the Snapdragon 845 SoC, as well as the associated GPIO driver. +config SPL_PINCTRL_QCOM_SDM845 + bool "Qualcomm SDM845 Pinctrl in SPL" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_SDM845. + See the help of PINCTRL_QCOM_SDM845 for details. + config PINCTRL_QCOM_SM6115 bool "Qualcomm SM6115 Pinctrl" default y if PINCTRL_QCOM_GENERIC
@@ -140,6 +274,14 @@ config PINCTRL_QCOM_SM6115 Say Y here to enable support for pinctrl on the Snapdragon SM6115 SoC, as well as the associated GPIO driver. +config SPL_PINCTRL_QCOM_SM6115 + bool "Qualcomm SM6115 Pinctrl in SPL" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_SM6115. + See the help of PINCTRL_QCOM_SM6115 for details. + config PINCTRL_QCOM_SM6125 bool "Qualcomm SM6125 Pinctrl" default y if PINCTRL_QCOM_GENERIC
@@ -148,6 +290,14 @@ config PINCTRL_QCOM_SM6125 Say Y here to enable support for pinctrl on the Snapdragon SM6125 SoC, as well as the associated GPIO driver. +config SPL_PINCTRL_QCOM_SM6125 + bool "Qualcomm SM6125 Pinctrl in SPL" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_SM6125. + See the help of PINCTRL_QCOM_SM6125 for details. + config PINCTRL_QCOM_SM6350 bool "Qualcomm SM6350 Pinctrl" default y if PINCTRL_QCOM_GENERIC
@@ -155,6 +305,14 @@ config PINCTRL_QCOM_SM6350 help Say Y here to enable support for pinctrl on the Snapdragon SM6350 SoC, +config SPL_PINCTRL_QCOM_SM6350 + bool "Qualcomm SM6350 Pinctrl in SPL" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_SM6350. + See the help of PINCTRL_QCOM_SM6350 for details. + config PINCTRL_QCOM_SM7150 bool "Qualcomm SM7150 GCC" default y if PINCTRL_QCOM_GENERIC
@@ -163,6 +321,14 @@ config PINCTRL_QCOM_SM7150 Say Y here to enable support for pinctrl on the Snapdragon SM7150 SoC, as well as the associated GPIO driver. +config SPL_PINCTRL_QCOM_SM7150 + bool "Qualcomm SM7150 Pinctrl in SPL" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_SM7150. + See the help of PINCTRL_QCOM_SM7150 for details. + config PINCTRL_QCOM_SM8150 bool "Qualcomm SM8150 Pinctrl" default y if PINCTRL_QCOM_GENERIC
@@ -171,6 +337,14 @@ config PINCTRL_QCOM_SM8150 Say Y here to enable support for pinctrl on the Snapdragon SM8150 SoC, as well as the associated GPIO driver. +config SPL_PINCTRL_QCOM_SM8150 + bool "Qualcomm SM8150 Pinctrl in SPL" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_SM8150. + See the help of PINCTRL_QCOM_SM8150 for details. + config PINCTRL_QCOM_SM8250 bool "Qualcomm SM8250 Pinctrl" default y if PINCTRL_QCOM_GENERIC
@@ -179,6 +353,14 @@ config PINCTRL_QCOM_SM8250 Say Y here to enable support for pinctrl on the Snapdragon SM8250 SoC, as well as the associated GPIO driver. +config SPL_PINCTRL_QCOM_SM8250 + bool "Qualcomm SM8250 Pinctrl in SPL" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_SM8250. + See the help of PINCTRL_QCOM_SM8250 for details. + config PINCTRL_QCOM_SM8550 bool "Qualcomm SM8550 Pinctrl" default y if PINCTRL_QCOM_GENERIC
@@ -187,6 +369,14 @@ config PINCTRL_QCOM_SM8550 Say Y here to enable support for pinctrl on the Snapdragon SM8550 SoC, as well as the associated GPIO driver. +config SPL_PINCTRL_QCOM_SM8550 + bool "Qualcomm SM8550 Pinctrl in SPL" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_SM8550. + See the help of PINCTRL_QCOM_SM8550 for details. + config PINCTRL_QCOM_SM8650 bool "Qualcomm SM8650 Pinctrl" default y if PINCTRL_QCOM_GENERIC
@@ -195,6 +385,14 @@ config PINCTRL_QCOM_SM8650 Say Y here to enable support for pinctrl on the Snapdragon SM8650 SoC, as well as the associated GPIO driver. +config SPL_PINCTRL_QCOM_SM8650 + bool "Qualcomm SM8650 Pinctrl in SPL" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_SM8650. + See the help of PINCTRL_QCOM_SM8650 for details. + config PINCTRL_QCOM_X1E80100 bool "Qualcomm X1E80100 Pinctrl" default y if PINCTRL_QCOM_GENERIC
@@ -203,6 +401,14 @@ config PINCTRL_QCOM_X1E80100 Say Y here to enable support for pinctrl on the Snapdragon X1E80100 SoC, as well as the associated GPIO driver. +config SPL_PINCTRL_QCOM_X1E80100 + bool "Qualcomm X1E80100 Pinctrl in SPL" + depends on SPL_PINCTRL_GENERIC + select SPL_PINCTRL_QCOM + help + SPL variant of PINCTRL_QCOM_X1E80100. + See the help of PINCTRL_QCOM_X1E80100 for details. + endmenu endif
drivers/pinctrl/qcom/Makefile +25 -25
53 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH 4/6 power: pmic: use $(PHASE_) macro for Qualcomm PMIC
In reply to Balaji SelvanathanUpdate the PMIC Makefile to use the $(PHASE_) macro for pmic_qcom.o so the driver can be built in SPL.
--- drivers/power/pmic/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/power/pmic/Makefile +1 -1
@@ -23,7 +23,7 @@ obj-$(CONFIG_PMIC_ACT8846) += act8846.o obj-$(CONFIG_PMIC_AS3722) += as3722.o as3722_gpio.o obj-$(CONFIG_$(PHASE_)PMIC_AXP) += axp.o obj-$(CONFIG_PMIC_MAX8997) += max8997.o -obj-$(CONFIG_PMIC_QCOM) += pmic_qcom.o +obj-$(CONFIG_$(PHASE_)PMIC_QCOM) += pmic_qcom.o obj-$(CONFIG_$(PHASE_)PMIC_RK8XX) += rk8xx.o obj-$(CONFIG_$(PHASE_)PMIC_RN5T567) += rn5t567.o obj-$(CONFIG_PMIC_TPS65090) += tps65090.o
Signature · 1 line
2.34.1
PATCH 5/6 soc: qcom: Enable phase-aware SMEM driver compilation
In reply to Balaji SelvanathanModify the Qualcomm SMEM driver Makefile to use the phase-aware configuration pattern CONFIG_$(PHASE_)QCOM_SMEM instead of the simple CONFIG_QCOM_SMEM.
--- drivers/soc/qcom/Kconfig | 7 +++++++ drivers/soc/qcom/Makefile | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-)
drivers/soc/qcom/Kconfig +7 -0
@@ -33,4 +33,11 @@ config QCOM_SMEM the hardware (e.g. DRAM layout, PMIC configuration, etc) between bootloader staged and the OS. If in doubt, say y. +config SPL_QCOM_SMEM + bool "Qualcomm SMEM support in SPL" + help + Say y here to support the Qualcomm SMEM (shared memory) client driver in SPL. + SMEM is a shared memory region that is used to pass information about + the hardware (e.g. DRAM layout, PMIC configuration, etc) between bootloader + staged and the OS. If in doubt, say y. endif # SOC_QCOM
drivers/soc/qcom/Makefile +1 -1
@@ -2,4 +2,4 @@ obj-$(CONFIG_QCOM_COMMAND_DB) += cmd-db.o obj-$(CONFIG_QCOM_RPMH) += rpmh-rsc.o rpmh.o -obj-$(CONFIG_QCOM_SMEM) += smem.o +obj-$(CONFIG_$(PHASE_)QCOM_SMEM) += smem.o
Signature · 1 line
2.34.1
PATCH 6/6 drivers: misc: add $(PHASE_) for QCOM_SPMI_SDAM config
In reply to Balaji SelvanathanAdd $(PHASE_) for QCOM_SPMI_SDAM config to differentiate between SPL and Proper build stages.
--- drivers/misc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/Makefile +1 -1
@@ -67,7 +67,7 @@ obj-$(CONFIG_QFW_SMBIOS) += qfw_smbios.o obj-$(CONFIG_SANDBOX) += qfw_sandbox.o endif obj-$(CONFIG_$(PHASE_)QCOM_GENI) += qcom_geni.o -obj-$(CONFIG_QCOM_SPMI_SDAM) += qcom-spmi-sdam.o +obj-$(CONFIG_$(PHASE_)QCOM_SPMI_SDAM) += qcom-spmi-sdam.o obj-$(CONFIG_$(PHASE_)ROCKCHIP_EFUSE) += rockchip-efuse.o obj-$(CONFIG_$(PHASE_)ROCKCHIP_OTP) += rockchip-otp.o obj-$(CONFIG_$(PHASE_)ROCKCHIP_IODOMAIN) += rockchip-io-domain.o
Signature · 1 line
2.34.1