phy: qcom-ufs: Declare 20nm qcom ufs qmp phy as Broken
authorVivek Gautam <vivek.gautam@codeaurora.org>
Tue, 4 Sep 2018 10:17:19 +0000 (15:47 +0530)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 26 Sep 2018 07:39:38 +0000 (13:09 +0530)
Fork out separate configs for 14nm and 20nm qcom ufs qmp phys
to declare the 20nm phy as broken.

Signed-off-by: Vivek Gautam <vivek.gautam@codeaurora.org>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/qualcomm/Kconfig
drivers/phy/qualcomm/Makefile

index 632a0e7..32f7d34 100644 (file)
@@ -50,6 +50,23 @@ config PHY_QCOM_UFS
        help
          Support for UFS PHY on QCOM chipsets.
 
+if PHY_QCOM_UFS
+
+config PHY_QCOM_UFS_14NM
+       tristate
+       default PHY_QCOM_UFS
+       help
+         Support for 14nm UFS QMP phy present on QCOM chipsets.
+
+config PHY_QCOM_UFS_20NM
+       tristate
+       default PHY_QCOM_UFS
+       depends on BROKEN
+       help
+         Support for 20nm UFS QMP phy present on QCOM chipsets.
+
+endif
+
 config PHY_QCOM_USB_HS
        tristate "Qualcomm USB HS PHY module"
        depends on USB_ULPI_BUS
index deb831f..c56efd3 100644 (file)
@@ -5,7 +5,7 @@ obj-$(CONFIG_PHY_QCOM_IPQ806X_SATA)     += phy-qcom-ipq806x-sata.o
 obj-$(CONFIG_PHY_QCOM_QMP)             += phy-qcom-qmp.o
 obj-$(CONFIG_PHY_QCOM_QUSB2)           += phy-qcom-qusb2.o
 obj-$(CONFIG_PHY_QCOM_UFS)             += phy-qcom-ufs.o
-obj-$(CONFIG_PHY_QCOM_UFS)             += phy-qcom-ufs-qmp-14nm.o
-obj-$(CONFIG_PHY_QCOM_UFS)             += phy-qcom-ufs-qmp-20nm.o
+obj-$(CONFIG_PHY_QCOM_UFS_14NM)                += phy-qcom-ufs-qmp-14nm.o
+obj-$(CONFIG_PHY_QCOM_UFS_20NM)                += phy-qcom-ufs-qmp-20nm.o
 obj-$(CONFIG_PHY_QCOM_USB_HS)          += phy-qcom-usb-hs.o
 obj-$(CONFIG_PHY_QCOM_USB_HSIC)        += phy-qcom-usb-hsic.o