aboutsummaryrefslogtreecommitdiff
path: root/drivers/phy/Kconfig
diff options
context:
space:
mode:
authorStephan Gerhold2021-07-08 20:33:49 +0200
committerTom Rini2021-07-14 16:48:15 -0400
commit4559df9e8160ae1b78bbfe2e90cda574ffa08317 (patch)
treeccd7e13ea6035f63f3366275a3f7fb4a091963b5 /drivers/phy/Kconfig
parent3f6e4ec7c3d0a25c3e3d69d22f11b41f11684dcb (diff)
phy: Add driver for ST-Ericsson AB8500 USB PHY
The AB8500 PMIC contains an USB PHY that needs to be set up in device or host mode to make USB work properly. Add a simple driver for the generic PHY uclass that allows enabling it. The if (CONFIG_IS_ENABLED(USB_MUSB_HOST)) might be a bit strange. The USB PHY must be configured in either host or device mode and somehow the USB PHY driver must be made aware of the mode. Actually, the MUSB driver used together with this PHY does not support dynamic selection of host/device mode in U-Boot at the moment. Therefore, one very simple approach that works fine is to select the mode to configure at compile time. When the MUSB driver is configured in host mode the PHY is configured in host mode, and similarly when the MUSB driver is configured in device/gadget mode. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Stephan Gerhold <stephan@gerhold.net> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'drivers/phy/Kconfig')
-rw-r--r--drivers/phy/Kconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig
index 008186a10d3..92c74b9d0b6 100644
--- a/drivers/phy/Kconfig
+++ b/drivers/phy/Kconfig
@@ -64,6 +64,12 @@ config MIPI_DPHY_HELPERS
help
Provides a number of helpers a core functions for MIPI D-PHY drivers.
+config AB8500_USB_PHY
+ bool "AB8500 USB PHY Driver"
+ depends on PHY && PMIC_AB8500
+ help
+ Support for the USB OTG PHY in ST-Ericsson AB8500.
+
config BCM6318_USBH_PHY
bool "BCM6318 USBH PHY support"
depends on PHY && ARCH_BMIPS