Commit d6125af9 authored by Sachin Kamat's avatar Sachin Kamat Committed by Kishon Vijay Abraham I

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: default avatarSachin Kamat <sachin.kamat@samsung.com>
Reviewed-by: default avatarJingoo Han <jg1.han@samsung.com>
Tested-by: default avatarVivek Gautam <gautam.vivek@samsung.com>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
parent e9e8cf49
...@@ -132,43 +132,30 @@ config PHY_SUN4I_USB ...@@ -132,43 +132,30 @@ config PHY_SUN4I_USB
config PHY_SAMSUNG_USB2 config PHY_SAMSUNG_USB2
tristate "Samsung USB 2.0 PHY driver" tristate "Samsung USB 2.0 PHY driver"
depends on HAS_IOMEM depends on HAS_IOMEM
depends on USB_EHCI_EXYNOS || USB_OHCI_EXYNOS || USB_DWC2
select GENERIC_PHY select GENERIC_PHY
select MFD_SYSCON select MFD_SYSCON
default ARCH_EXYNOS
help help
Enable this to support the Samsung USB 2.0 PHY driver for Samsung Enable this to support the Samsung USB 2.0 PHY driver for Samsung
SoCs. This driver provides the interface for USB 2.0 PHY. Support for SoCs. This driver provides the interface for USB 2.0 PHY. Support
particular SoCs has to be enabled in addition to this driver. Number for particular PHYs will be enabled based on the SoC type in addition
and type of supported phys depends on the SoC. to this driver.
config PHY_EXYNOS4210_USB2 config PHY_EXYNOS4210_USB2
bool "Support for Exynos 4210" bool
depends on PHY_SAMSUNG_USB2 depends on PHY_SAMSUNG_USB2
depends on CPU_EXYNOS4210 default CPU_EXYNOS4210
help
Enable USB PHY support for Exynos 4210. This option requires that
Samsung USB 2.0 PHY driver is enabled and means that support for this
particular SoC is compiled in the driver. In case of Exynos 4210 four
phys are available - device, host, HSIC0 and HSIC1.
config PHY_EXYNOS4X12_USB2 config PHY_EXYNOS4X12_USB2
bool "Support for Exynos 3250/4x12" bool
depends on PHY_SAMSUNG_USB2 depends on PHY_SAMSUNG_USB2
depends on (SOC_EXYNOS3250 || SOC_EXYNOS4212 || SOC_EXYNOS4412) default SOC_EXYNOS3250 || SOC_EXYNOS4212 || SOC_EXYNOS4412
help
Enable USB PHY support for Exynos 3250/4x12. This option requires
that Samsung USB 2.0 PHY driver is enabled and means that support for
this particular SoC is compiled in the driver. In case of Exynos 4x12
four phys are available - device, host, HSIC0 and HSIC1.
config PHY_EXYNOS5250_USB2 config PHY_EXYNOS5250_USB2
bool "Support for Exynos 5250" bool
depends on PHY_SAMSUNG_USB2 depends on PHY_SAMSUNG_USB2
depends on SOC_EXYNOS5250 default SOC_EXYNOS5250 || SOC_EXYNOS5420
help
Enable USB PHY support for Exynos 5250. This option requires that
Samsung USB 2.0 PHY driver is enabled and means that support for this
particular SoC is compiled in the driver. In case of Exynos 5250 four
phys are available - device, host, HSIC0 and HSIC.
config PHY_EXYNOS5_USBDRD config PHY_EXYNOS5_USBDRD
tristate "Exynos5 SoC series USB DRD PHY driver" tristate "Exynos5 SoC series USB DRD PHY driver"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment