Skip to content

Commit

Permalink
USB: PHY: JZ4770: Use the generic PHY framework.
Browse files Browse the repository at this point in the history
Used the generic PHY framework API to create the PHY,
and move the driver to driver/phy/ingenic.

Tested-by: 周正 (Zhou Zheng) <sernia.zhou@foxmail.com>
Co-developed-by: 漆鹏振 (Qi Pengzhen) <aric.pzqi@ingenic.com>
Signed-off-by: 漆鹏振 (Qi Pengzhen) <aric.pzqi@ingenic.com>
Signed-off-by: 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
  • Loading branch information
XBurst authored and intel-lab-lkp committed Aug 30, 2020
1 parent b36c969 commit ab23f57
Show file tree
Hide file tree
Showing 7 changed files with 155 additions and 106 deletions.
1 change: 1 addition & 0 deletions drivers/phy/Kconfig
Expand Up @@ -55,6 +55,7 @@ source "drivers/phy/broadcom/Kconfig"
source "drivers/phy/cadence/Kconfig"
source "drivers/phy/freescale/Kconfig"
source "drivers/phy/hisilicon/Kconfig"
source "drivers/phy/ingenic/Kconfig"
source "drivers/phy/lantiq/Kconfig"
source "drivers/phy/marvell/Kconfig"
source "drivers/phy/mediatek/Kconfig"
Expand Down
1 change: 1 addition & 0 deletions drivers/phy/Makefile
Expand Up @@ -14,6 +14,7 @@ obj-y += allwinner/ \
cadence/ \
freescale/ \
hisilicon/ \
ingenic/ \
intel/ \
lantiq/ \
marvell/ \
Expand Down
12 changes: 12 additions & 0 deletions drivers/phy/ingenic/Kconfig
@@ -0,0 +1,12 @@
# SPDX-License-Identifier: GPL-2.0
#
# Phy drivers for Ingenic platforms
#
config PHY_INGENIC_USB
tristate "Ingenic SoCs USB PHY Driver"
depends on (MACH_INGENIC && MIPS) || COMPILE_TEST
depends on USB_SUPPORT
select GENERIC_PHY
help
This driver provides USB PHY support for the USB controller found
on the JZ-series and X-series SoCs from Ingenic.
2 changes: 2 additions & 0 deletions drivers/phy/ingenic/Makefile
@@ -0,0 +1,2 @@
# SPDX-License-Identifier: GPL-2.0
obj-y += phy-ingenic-usb.o

0 comments on commit ab23f57

Please sign in to comment.