linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: Add qcom Kconfig fragment
@ 2019-12-20 13:56 Loic Poulain
  2019-12-20 18:01 ` Catalin Marinas
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Loic Poulain @ 2019-12-20 13:56 UTC (permalink / raw)
  To: catalin.marinas, will; +Cc: linux-arm-kernel, linux-arm-msm, Loic Poulain

Add qcom Kconfig fragment which enables the appropriate symbols for
support of Qualcomm based boards, like the 'popular' dragonboards.
This permits to fully support the boards upstream without having to
rely on downstream deconfig changes.

This patch has been tested with Dragonboard-410c and Dragonboard-820c.

qcom.config fragment has been generated with ./script/diffconfig

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
---
 arch/arm64/configs/qcom.config | 57 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)
 create mode 100644 arch/arm64/configs/qcom.config

diff --git a/arch/arm64/configs/qcom.config b/arch/arm64/configs/qcom.config
new file mode 100644
index 0000000..9358df8
--- /dev/null
+++ b/arch/arm64/configs/qcom.config
@@ -0,0 +1,57 @@
+CONFIG_ARM_QCOM_CPUFREQ_HW=y
+CONFIG_BT_HCIUART_3WIRE=y
+CONFIG_BT_HCIUART_QCA=y
+CONFIG_BT_HCIUART_RTL=y
+CONFIG_CRYPTO_DEV_QCOM_RNG=y
+CONFIG_EXTCON_QCOM_SPMI_MISC=y
+CONFIG_INTERCONNECT=y
+CONFIG_MFD_QCOM_RPM=y
+CONFIG_PHY_QCOM_PCIE2=y
+CONFIG_PHY_QCOM_QMP=y
+CONFIG_PHY_QCOM_QUSB2=y
+CONFIG_PHY_QCOM_UFS=y
+CONFIG_PM8916_WATCHDOG=y
+CONFIG_POWER_RESET_QCOM_PON=y
+CONFIG_QCOM_APR=m
+CONFIG_QCOM_FASTRPC=y
+CONFIG_QCOM_RMTFS_MEM=m
+CONFIG_QCOM_RPMHPD=y
+CONFIG_QCOM_RPMPD=y
+CONFIG_QCOM_SOCINFO=m
+CONFIG_QCOM_WCNSS_CTRL=m
+CONFIG_QCOM_WCNSS_PIL=m
+CONFIG_SCSI_UFS_QCOM=y
+CONFIG_SND_SOC_CROS_EC_CODEC=m
+CONFIG_SND_SOC_MAX98927=m
+CONFIG_SND_SOC_MSM8916_WCD_ANALOG=m
+CONFIG_SND_SOC_MSM8916_WCD_DIGITAL=m
+CONFIG_VIDEO_QCOM_CAMSS=m
+CONFIG_VIDEO_QCOM_VENUS=m
+CONFIG_WCN36XX=m
+CONFIG_BT_QCA=m
+CONFIG_BT_QCOMSMD=m
+CONFIG_INTERCONNECT_QCOM=y
+CONFIG_INTERCONNECT_QCOM_MSM8974=y
+CONFIG_INTERCONNECT_QCOM_QCS404=y
+CONFIG_INTERCONNECT_QCOM_SDM845=y
+CONFIG_INTERCONNECT_QCOM_SMD_RPM=y
+CONFIG_PHY_QCOM_UFS_14NM=y
+CONFIG_QCOM_CLK_RPM=y
+CONFIG_REGULATOR_QCOM_RPM=y
+CONFIG_SND_COMPRESS_OFFLOAD=y
+CONFIG_SND_SOC_COMPRESS=y
+CONFIG_SND_SOC_MSM8996=m
+CONFIG_SND_SOC_QCOM_COMMON=m
+CONFIG_SND_SOC_QDSP6=m
+CONFIG_SND_SOC_QDSP6_ADM=m
+CONFIG_SND_SOC_QDSP6_AFE=m
+CONFIG_SND_SOC_QDSP6_AFE_DAI=m
+CONFIG_SND_SOC_QDSP6_ASM=m
+CONFIG_SND_SOC_QDSP6_ASM_DAI=m
+CONFIG_SND_SOC_QDSP6_COMMON=m
+CONFIG_SND_SOC_QDSP6_CORE=m
+CONFIG_SND_SOC_QDSP6_ROUTING=m
+CONFIG_SND_SOC_RT5663=m
+CONFIG_SND_SOC_SDM845=m
+CONFIG_VIDEOBUF2_DMA_SG=m
+CONFIG_WCN36XX_DEBUGFS=y
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: Add qcom Kconfig fragment
  2019-12-20 13:56 [PATCH] arm64: Add qcom Kconfig fragment Loic Poulain
@ 2019-12-20 18:01 ` Catalin Marinas
  2019-12-20 19:14 ` Brian Masney
  2019-12-27  6:39 ` Bjorn Andersson
  2 siblings, 0 replies; 4+ messages in thread
From: Catalin Marinas @ 2019-12-20 18:01 UTC (permalink / raw)
  To: Loic Poulain; +Cc: will, linux-arm-kernel, linux-arm-msm

On Fri, Dec 20, 2019 at 02:56:00PM +0100, Loic Poulain wrote:
> Add qcom Kconfig fragment which enables the appropriate symbols for
> support of Qualcomm based boards, like the 'popular' dragonboards.
> This permits to fully support the boards upstream without having to
> rely on downstream deconfig changes.
> 
> This patch has been tested with Dragonboard-410c and Dragonboard-820c.
> 
> qcom.config fragment has been generated with ./script/diffconfig
> 
> Signed-off-by: Loic Poulain <loic.poulain@linaro.org>

Please add these to defconfig (and make sure they don't break the single
kernel image).

NAK for this patch.

-- 
Catalin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: Add qcom Kconfig fragment
  2019-12-20 13:56 [PATCH] arm64: Add qcom Kconfig fragment Loic Poulain
  2019-12-20 18:01 ` Catalin Marinas
@ 2019-12-20 19:14 ` Brian Masney
  2019-12-27  6:39 ` Bjorn Andersson
  2 siblings, 0 replies; 4+ messages in thread
From: Brian Masney @ 2019-12-20 19:14 UTC (permalink / raw)
  To: Loic Poulain; +Cc: catalin.marinas, will, linux-arm-kernel, linux-arm-msm

On Fri, Dec 20, 2019 at 02:56:00PM +0100, Loic Poulain wrote:
> Add qcom Kconfig fragment which enables the appropriate symbols for
> support of Qualcomm based boards, like the 'popular' dragonboards.
> This permits to fully support the boards upstream without having to
> rely on downstream deconfig changes.
> 
> This patch has been tested with Dragonboard-410c and Dragonboard-820c.
> 
> qcom.config fragment has been generated with ./script/diffconfig
> 
> Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
> ---
>  arch/arm64/configs/qcom.config | 57 ++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 57 insertions(+)
>  create mode 100644 arch/arm64/configs/qcom.config
> 
> diff --git a/arch/arm64/configs/qcom.config b/arch/arm64/configs/qcom.config
> new file mode 100644
> index 0000000..9358df8
> --- /dev/null
> +++ b/arch/arm64/configs/qcom.config
> @@ -0,0 +1,57 @@
> +CONFIG_ARM_QCOM_CPUFREQ_HW=y
> +CONFIG_BT_HCIUART_3WIRE=y
> +CONFIG_BT_HCIUART_QCA=y
> +CONFIG_BT_HCIUART_RTL=y
> +CONFIG_CRYPTO_DEV_QCOM_RNG=y
> +CONFIG_EXTCON_QCOM_SPMI_MISC=y
> +CONFIG_INTERCONNECT=y
> +CONFIG_MFD_QCOM_RPM=y
> +CONFIG_PHY_QCOM_PCIE2=y
> +CONFIG_PHY_QCOM_QMP=y
> +CONFIG_PHY_QCOM_QUSB2=y
> +CONFIG_PHY_QCOM_UFS=y
> +CONFIG_PM8916_WATCHDOG=y
> +CONFIG_POWER_RESET_QCOM_PON=y
> +CONFIG_QCOM_APR=m
> +CONFIG_QCOM_FASTRPC=y
> +CONFIG_QCOM_RMTFS_MEM=m
> +CONFIG_QCOM_RPMHPD=y
> +CONFIG_QCOM_RPMPD=y
> +CONFIG_QCOM_SOCINFO=m
> +CONFIG_QCOM_WCNSS_CTRL=m
> +CONFIG_QCOM_WCNSS_PIL=m
> +CONFIG_SCSI_UFS_QCOM=y
> +CONFIG_SND_SOC_CROS_EC_CODEC=m
> +CONFIG_SND_SOC_MAX98927=m
> +CONFIG_SND_SOC_MSM8916_WCD_ANALOG=m
> +CONFIG_SND_SOC_MSM8916_WCD_DIGITAL=m
> +CONFIG_VIDEO_QCOM_CAMSS=m
> +CONFIG_VIDEO_QCOM_VENUS=m
> +CONFIG_WCN36XX=m
> +CONFIG_BT_QCA=m
> +CONFIG_BT_QCOMSMD=m
> +CONFIG_INTERCONNECT_QCOM=y
> +CONFIG_INTERCONNECT_QCOM_MSM8974=y

msm8974 is arm32 and should be dropped.

Brian

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: Add qcom Kconfig fragment
  2019-12-20 13:56 [PATCH] arm64: Add qcom Kconfig fragment Loic Poulain
  2019-12-20 18:01 ` Catalin Marinas
  2019-12-20 19:14 ` Brian Masney
@ 2019-12-27  6:39 ` Bjorn Andersson
  2 siblings, 0 replies; 4+ messages in thread
From: Bjorn Andersson @ 2019-12-27  6:39 UTC (permalink / raw)
  To: Loic Poulain; +Cc: catalin.marinas, will, linux-arm-kernel, linux-arm-msm

On Fri 20 Dec 05:56 PST 2019, Loic Poulain wrote:

> Add qcom Kconfig fragment which enables the appropriate symbols for
> support of Qualcomm based boards, like the 'popular' dragonboards.
> This permits to fully support the boards upstream without having to
> rely on downstream deconfig changes.
> 
> This patch has been tested with Dragonboard-410c and Dragonboard-820c.
> 

As Catalin said, this should be added to the generic defconfig. I have a
few of these queued up already for v5.6 in linux-next, but please do
send me additional patches and I'll include them in the qcom/defconfig
branch.

> qcom.config fragment has been generated with ./script/diffconfig
> 
> Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
> ---
>  arch/arm64/configs/qcom.config | 57 ++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 57 insertions(+)
>  create mode 100644 arch/arm64/configs/qcom.config
> 
> diff --git a/arch/arm64/configs/qcom.config b/arch/arm64/configs/qcom.config
> new file mode 100644
> index 0000000..9358df8
> --- /dev/null
> +++ b/arch/arm64/configs/qcom.config
> @@ -0,0 +1,57 @@
> +CONFIG_ARM_QCOM_CPUFREQ_HW=y
> +CONFIG_BT_HCIUART_3WIRE=y
> +CONFIG_BT_HCIUART_QCA=y
> +CONFIG_BT_HCIUART_RTL=y
> +CONFIG_CRYPTO_DEV_QCOM_RNG=y

=m

> +CONFIG_EXTCON_QCOM_SPMI_MISC=y
> +CONFIG_INTERCONNECT=y
> +CONFIG_MFD_QCOM_RPM=y

This is for 32-bit targets.

> +CONFIG_PHY_QCOM_PCIE2=y

=m

> +CONFIG_PHY_QCOM_QMP=y

=m

> +CONFIG_PHY_QCOM_QUSB2=y

=m

> +CONFIG_PHY_QCOM_UFS=y

I recently proposed a patch to add 8996 UFS support to the common QMP
driver, so hopefully we can get that merged for v5.6 instead.

> +CONFIG_PM8916_WATCHDOG=y

=m

> +CONFIG_POWER_RESET_QCOM_PON=y

=m

> +CONFIG_QCOM_APR=m
> +CONFIG_QCOM_FASTRPC=y

=m

> +CONFIG_QCOM_RMTFS_MEM=m
> +CONFIG_QCOM_RPMHPD=y
> +CONFIG_QCOM_RPMPD=y
> +CONFIG_QCOM_SOCINFO=m
> +CONFIG_QCOM_WCNSS_CTRL=m
> +CONFIG_QCOM_WCNSS_PIL=m
> +CONFIG_SCSI_UFS_QCOM=y

=m

> +CONFIG_SND_SOC_CROS_EC_CODEC=m
> +CONFIG_SND_SOC_MAX98927=m
> +CONFIG_SND_SOC_MSM8916_WCD_ANALOG=m
> +CONFIG_SND_SOC_MSM8916_WCD_DIGITAL=m
> +CONFIG_VIDEO_QCOM_CAMSS=m
> +CONFIG_VIDEO_QCOM_VENUS=m
> +CONFIG_WCN36XX=m
> +CONFIG_BT_QCA=m
> +CONFIG_BT_QCOMSMD=m
> +CONFIG_INTERCONNECT_QCOM=y
> +CONFIG_INTERCONNECT_QCOM_MSM8974=y
> +CONFIG_INTERCONNECT_QCOM_QCS404=y
> +CONFIG_INTERCONNECT_QCOM_SDM845=y
> +CONFIG_INTERCONNECT_QCOM_SMD_RPM=y

Selected as needed by previous options.

> +CONFIG_PHY_QCOM_UFS_14NM=y

Follows CONFIG_PHY_QCOM_UFS, and should be replaced by
CONFIG_PHY_QCOM_QMP

> +CONFIG_QCOM_CLK_RPM=y
> +CONFIG_REGULATOR_QCOM_RPM=y

These two are for 32-bit targets.

Regards,
Bjorn

> +CONFIG_SND_COMPRESS_OFFLOAD=y
> +CONFIG_SND_SOC_COMPRESS=y
> +CONFIG_SND_SOC_MSM8996=m
> +CONFIG_SND_SOC_QCOM_COMMON=m
> +CONFIG_SND_SOC_QDSP6=m
> +CONFIG_SND_SOC_QDSP6_ADM=m
> +CONFIG_SND_SOC_QDSP6_AFE=m
> +CONFIG_SND_SOC_QDSP6_AFE_DAI=m
> +CONFIG_SND_SOC_QDSP6_ASM=m
> +CONFIG_SND_SOC_QDSP6_ASM_DAI=m
> +CONFIG_SND_SOC_QDSP6_COMMON=m
> +CONFIG_SND_SOC_QDSP6_CORE=m
> +CONFIG_SND_SOC_QDSP6_ROUTING=m
> +CONFIG_SND_SOC_RT5663=m
> +CONFIG_SND_SOC_SDM845=m
> +CONFIG_VIDEOBUF2_DMA_SG=m
> +CONFIG_WCN36XX_DEBUGFS=y
> -- 
> 2.7.4
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-12-27  6:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-20 13:56 [PATCH] arm64: Add qcom Kconfig fragment Loic Poulain
2019-12-20 18:01 ` Catalin Marinas
2019-12-20 19:14 ` Brian Masney
2019-12-27  6:39 ` Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).