Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ed4bd3a authored by Gilad Broner's avatar Gilad Broner Committed by Matt Wagantall
Browse files

phy: qcom-ufs: add ufs phy type selection



Currently both 14nm phy and 20nm phy are compiled and built into
the kernel, while only one type is actually present and used.
Add a choice selection to the kernel configuration to specify
which phy type shall be used.

Change-Id: I5608d32fb4815db15e91a970e53099762eabbddd
Signed-off-by: default avatarGilad Broner <gbroner@codeaurora.org>
parent c2655a01
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -263,4 +263,23 @@ config PHY_QCOM_UFS
	help
	  Support for UFS PHY on QCOM chipsets.

choice
	prompt "Qualcomm UFS PHY type"
	depends on PHY_QCOM_UFS
	default PHY_QCOM_UFS_14NM
	---help---
	  This select the type of UFS PHY to be used.
	  It must match the actual hardware found on your platform.

	config PHY_QCOM_UFS_14NM
	bool "UFS QCOM 14nm PHY"
	help
	  Select this if your platform has a 14nm UFS PHY.

	config PHY_QCOM_UFS_20NM
	bool "UFS QCOM 20nm PHY"
	help
	  Select this if your platform has a 20nm UFS PHY.
endchoice

endmenu
+4 −3
Original line number Diff line number Diff line
@@ -26,9 +26,10 @@ phy-exynos-usb2-$(CONFIG_PHY_S5PV210_USB2) += phy-s5pv210-usb2.o
obj-$(CONFIG_PHY_EXYNOS5_USBDRD)	+= phy-exynos5-usbdrd.o
obj-$(CONFIG_PHY_QCOM_APQ8064_SATA)	+= phy-qcom-apq8064-sata.o
obj-$(CONFIG_PHY_QCOM_IPQ806X_SATA)	+= phy-qcom-ipq806x-sata.o
obj-$(CONFIG_PHY_QCOM_UFS) 	+= phy-qcom-ufs.o
obj-$(CONFIG_PHY_QCOM_UFS) 	+= phy-qcom-ufs-qmp-20nm.o
obj-$(CONFIG_PHY_QCOM_UFS) 	+= phy-qcom-ufs-qmp-14nm.o
phy_qcom_ufs_mod-y				+= phy-qcom-ufs.o
phy_qcom_ufs_mod-$(CONFIG_PHY_QCOM_UFS_20NM)	+= phy-qcom-ufs-qmp-20nm.o
phy_qcom_ufs_mod-$(CONFIG_PHY_QCOM_UFS_14NM)	+= phy-qcom-ufs-qmp-14nm.o
obj-$(CONFIG_PHY_QCOM_UFS)			+= phy_qcom_ufs_mod.o
obj-$(CONFIG_PHY_ST_SPEAR1310_MIPHY)	+= phy-spear1310-miphy.o
obj-$(CONFIG_PHY_ST_SPEAR1340_MIPHY)	+= phy-spear1340-miphy.o
obj-$(CONFIG_PHY_XGENE)			+= phy-xgene.o