From d7d7606c7e3f78fa201280f5af08ddae238233a1 Mon Sep 17 00:00:00 2001 From: Stefan Roese Date: Fri, 5 Apr 2019 13:44:43 +0200 Subject: phy: Add USB PHY driver for the MT76x8 (7628/7688) SoC This driver is derived from this Linux driver: linux/drivers/phy/ralink/phy-ralink-usb.c The driver sets up power and host mode, but also needs to configure PHY registers for the MT7628 and MT7688. I removed the reset controller handling for the USB host and device, as it does not seem to be necessary right now. The soft reset bits for both devices are enabled by default and testing has shown (with hackish reset handling added), that USB related commands work identical with or without the reset handling. Please note that the resulting USB support is tested only very minimal. I was able to detect one of my 3 currently available USB sticks. Perhaps some further work is needed to fully support the EHCI controller integrated in the MT76x8 SoC. Signed-off-by: Stefan Roese Cc: Marek Vasut Cc: Daniel Schwierzeck Reviewed-by: Daniel Schwierzeck --- drivers/phy/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/phy/Makefile') diff --git a/drivers/phy/Makefile b/drivers/phy/Makefile index 099551d6930..b55917bce1a 100644 --- a/drivers/phy/Makefile +++ b/drivers/phy/Makefile @@ -19,3 +19,4 @@ obj-$(CONFIG_MESON_GXL_USB_PHY) += meson-gxl-usb2.o meson-gxl-usb3.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_MT76X8_USB_PHY) += mt76x8-usb-phy.o -- cgit v1.2.3