aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/phy/Kconfig
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@samsung.com>2014-07-14 06:08:41 -0400
committerKishon Vijay Abraham I <kishon@ti.com>2014-07-22 03:16:11 -0400
commitd6125af9afd622b6dbb6d7cd97972e2f398b8d35 (patch)
treedf27f475d523b94c22524a2188d0941b945b13f5 /drivers/phy/Kconfig
parente9e8cf49f9ebbdc8ffafc9627bfade76c5384845 (diff)
phy: Kconfig: Re-organize Exynos USB 2.0 PHY configs
Since the USB 2.0 PHYs are required with EHCI/OHCI USB drivers and USB gadget controller supported by the DWC2 gadget driver, make it depend on them and default to ARCH_EXYNOS as they are meant for Exynos platforms. Also, make the sub-drivers silent options enabling them based on the SoC platforms that they are meant to work with. This will make life easier for end users who do not have any way knowing the dependencies. Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com> Reviewed-by: Jingoo Han <jg1.han@samsung.com> Tested-by: Vivek Gautam <gautam.vivek@samsung.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/phy/Kconfig')
-rw-r--r--drivers/phy/Kconfig35
1 files changed, 11 insertions, 24 deletions
diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig
index 7c49c4c61727..f28b87f1582d 100644
--- a/drivers/phy/Kconfig
+++ b/drivers/phy/Kconfig
@@ -132,43 +132,30 @@ config PHY_SUN4I_USB
132config PHY_SAMSUNG_USB2 132config PHY_SAMSUNG_USB2
133 tristate "Samsung USB 2.0 PHY driver" 133 tristate "Samsung USB 2.0 PHY driver"
134 depends on HAS_IOMEM 134 depends on HAS_IOMEM
135 depends on USB_EHCI_EXYNOS || USB_OHCI_EXYNOS || USB_DWC2
135 select GENERIC_PHY 136 select GENERIC_PHY
136 select MFD_SYSCON 137 select MFD_SYSCON
138 default ARCH_EXYNOS
137 help 139 help
138 Enable this to support the Samsung USB 2.0 PHY driver for Samsung 140 Enable this to support the Samsung USB 2.0 PHY driver for Samsung
139 SoCs. This driver provides the interface for USB 2.0 PHY. Support for 141 SoCs. This driver provides the interface for USB 2.0 PHY. Support
140 particular SoCs has to be enabled in addition to this driver. Number 142 for particular PHYs will be enabled based on the SoC type in addition
141 and type of supported phys depends on the SoC. 143 to this driver.
142 144
143config PHY_EXYNOS4210_USB2 145config PHY_EXYNOS4210_USB2
144 bool "Support for Exynos 4210" 146 bool
145 depends on PHY_SAMSUNG_USB2 147 depends on PHY_SAMSUNG_USB2
146 depends on CPU_EXYNOS4210 148 default CPU_EXYNOS4210
147 help
148 Enable USB PHY support for Exynos 4210. This option requires that
149 Samsung USB 2.0 PHY driver is enabled and means that support for this
150 particular SoC is compiled in the driver. In case of Exynos 4210 four
151 phys are available - device, host, HSIC0 and HSIC1.
152 149
153config PHY_EXYNOS4X12_USB2 150config PHY_EXYNOS4X12_USB2
154 bool "Support for Exynos 3250/4x12" 151 bool
155 depends on PHY_SAMSUNG_USB2 152 depends on PHY_SAMSUNG_USB2
156 depends on (SOC_EXYNOS3250 || SOC_EXYNOS4212 || SOC_EXYNOS4412) 153 default SOC_EXYNOS3250 || SOC_EXYNOS4212 || SOC_EXYNOS4412
157 help
158 Enable USB PHY support for Exynos 3250/4x12. This option requires
159 that Samsung USB 2.0 PHY driver is enabled and means that support for
160 this particular SoC is compiled in the driver. In case of Exynos 4x12
161 four phys are available - device, host, HSIC0 and HSIC1.
162 154
163config PHY_EXYNOS5250_USB2 155config PHY_EXYNOS5250_USB2
164 bool "Support for Exynos 5250" 156 bool
165 depends on PHY_SAMSUNG_USB2 157 depends on PHY_SAMSUNG_USB2
166 depends on SOC_EXYNOS5250 158 default SOC_EXYNOS5250 || SOC_EXYNOS5420
167 help
168 Enable USB PHY support for Exynos 5250. This option requires that
169 Samsung USB 2.0 PHY driver is enabled and means that support for this
170 particular SoC is compiled in the driver. In case of Exynos 5250 four
171 phys are available - device, host, HSIC0 and HSIC.
172 159
173config PHY_EXYNOS5_USBDRD 160config PHY_EXYNOS5_USBDRD
174 tristate "Exynos5 SoC series USB DRD PHY driver" 161 tristate "Exynos5 SoC series USB DRD PHY driver"