mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-01-02 00:08:50 +00:00
4559df9e81
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>
34 lines
1.6 KiB
Makefile
34 lines
1.6 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/
|
|
# Written by Jean-Jacques Hiblot <jjhiblot@ti.com>
|
|
|
|
obj-$(CONFIG_$(SPL_)PHY) += phy-uclass.o
|
|
obj-$(CONFIG_$(SPL_)NOP_PHY) += nop-phy.o
|
|
obj-$(CONFIG_MIPI_DPHY_HELPERS) += phy-core-mipi-dphy.o
|
|
obj-$(CONFIG_AB8500_USB_PHY) += phy-ab8500-usb.o
|
|
obj-$(CONFIG_BCM6318_USBH_PHY) += bcm6318-usbh-phy.o
|
|
obj-$(CONFIG_BCM6348_USBH_PHY) += bcm6348-usbh-phy.o
|
|
obj-$(CONFIG_BCM6358_USBH_PHY) += bcm6358-usbh-phy.o
|
|
obj-$(CONFIG_BCM6368_USBH_PHY) += bcm6368-usbh-phy.o
|
|
obj-$(CONFIG_BCM_SR_PCIE_PHY) += phy-bcm-sr-pcie.o
|
|
obj-$(CONFIG_PHY_SANDBOX) += sandbox-phy.o
|
|
obj-$(CONFIG_$(SPL_)PIPE3_PHY) += ti-pipe3-phy.o
|
|
obj-$(CONFIG_AM654_PHY) += phy-ti-am654.o
|
|
obj-$(CONFIG_STI_USB_PHY) += sti_usb_phy.o
|
|
obj-$(CONFIG_PHY_QCOM_IPQ4019_USB) += phy-qcom-ipq4019-usb.o
|
|
obj-$(CONFIG_PHY_RCAR_GEN2) += phy-rcar-gen2.o
|
|
obj-$(CONFIG_PHY_RCAR_GEN3) += phy-rcar-gen3.o
|
|
obj-$(CONFIG_PHY_STM32_USBPHYC) += phy-stm32-usbphyc.o
|
|
obj-$(CONFIG_MESON_GXBB_USB_PHY) += meson-gxbb-usb2.o
|
|
obj-$(CONFIG_MESON_GXL_USB_PHY) += meson-gxl-usb2.o
|
|
obj-$(CONFIG_MESON_G12A_USB_PHY) += meson-g12a-usb2.o meson-g12a-usb3-pcie.o
|
|
obj-$(CONFIG_MESON_AXG_MIPI_DPHY) += meson-axg-mipi-dphy.o
|
|
obj-$(CONFIG_MESON_AXG_MIPI_PCIE_ANALOG_PHY) += meson-axg-mipi-pcie-analog.o
|
|
obj-$(CONFIG_MSM8916_USB_PHY) += msm8916-usbh-phy.o
|
|
obj-$(CONFIG_OMAP_USB2_PHY) += omap-usb2-phy.o
|
|
obj-$(CONFIG_KEYSTONE_USB_PHY) += keystone-usb-phy.o
|
|
obj-$(CONFIG_MT7620_USB_PHY) += mt7620-usb-phy.o
|
|
obj-$(CONFIG_MT76X8_USB_PHY) += mt76x8-usb-phy.o
|
|
obj-$(CONFIG_PHY_DA8XX_USB) += phy-da8xx-usb.o
|
|
obj-$(CONFIG_PHY_MTK_TPHY) += phy-mtk-tphy.o
|