Skip to content

Commit cd4ec4b

Browse files
Chunfeng Yunkishon
authored andcommitted
phy: phy-mt65xx-usb3: add mediatek directory and rename file
The driver is actually for T-PHY which supports USB3.0, PCIe and SATA, and supports more SoCs now, but not just only for series of mt65xx SoCs, so the name of file, data struct, functions etc with 'mt65xx' may cause misunderstanding when new SoCs are supported. Here rename them to reflect the real functions and also enhance readability. And also update MAINTAINERS file to reflect the correct driver Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
1 parent 7c6eac2 commit cd4ec4b

6 files changed

Lines changed: 154 additions & 142 deletions

File tree

‎MAINTAINERS‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1599,7 +1599,7 @@ M: Chunfeng Yun <chunfeng.yun@mediatek.com>
15991599
L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
16001600
L: linux-mediatek@lists.infradead.org (moderated for non-subscribers)
16011601
S: Maintained
1602-
F: drivers/phy/phy-mt65xx-usb3.c
1602+
F: drivers/phy/mediatek/phy-mtk-tphy.c
16031603

16041604
ARM/MICREL KS8695 ARCHITECTURE
16051605
M: Greg Ungerer <gerg@uclinux.org>

‎drivers/phy/Kconfig‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,6 @@ config PHY_LPC18XX_USB_OTG
2626
This driver is need for USB0 support on LPC18xx/43xx and takes
2727
care of enabling and clock setup.
2828

29-
config PHY_MT65XX_USB3
30-
tristate "Mediatek USB3.0 PHY Driver"
31-
depends on ARCH_MEDIATEK && OF
32-
select GENERIC_PHY
33-
help
34-
Say 'Y' here to add support for Mediatek USB3.0 PHY driver,
35-
it supports multiple usb2.0 and usb3.0 ports.
36-
3729
config PHY_PISTACHIO_USB
3830
tristate "IMG Pistachio USB2.0 PHY driver"
3931
depends on MACH_PISTACHIO
@@ -53,6 +45,7 @@ source "drivers/phy/amlogic/Kconfig"
5345
source "drivers/phy/broadcom/Kconfig"
5446
source "drivers/phy/hisilicon/Kconfig"
5547
source "drivers/phy/marvell/Kconfig"
48+
source "drivers/phy/mediatek/Kconfig"
5649
source "drivers/phy/motorola/Kconfig"
5750
source "drivers/phy/qualcomm/Kconfig"
5851
source "drivers/phy/renesas/Kconfig"

‎drivers/phy/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
obj-$(CONFIG_GENERIC_PHY) += phy-core.o
66
obj-$(CONFIG_PHY_LPC18XX_USB_OTG) += phy-lpc18xx-usb-otg.o
7-
obj-$(CONFIG_PHY_MT65XX_USB3) += phy-mt65xx-usb3.o
87
obj-$(CONFIG_PHY_XGENE) += phy-xgene.o
98
obj-$(CONFIG_PHY_PISTACHIO_USB) += phy-pistachio-usb.o
109

1110
obj-$(CONFIG_ARCH_SUNXI) += allwinner/
1211
obj-$(CONFIG_ARCH_MESON) += amlogic/
12+
obj-$(CONFIG_ARCH_MEDIATEK) += mediatek/
1313
obj-$(CONFIG_ARCH_RENESAS) += renesas/
1414
obj-$(CONFIG_ARCH_ROCKCHIP) += rockchip/
1515
obj-$(CONFIG_ARCH_TEGRA) += tegra/

‎drivers/phy/mediatek/Kconfig‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#
2+
# Phy drivers for Mediatek devices
3+
#
4+
config PHY_MTK_TPHY
5+
tristate "MediaTek T-PHY Driver"
6+
depends on ARCH_MEDIATEK && OF
7+
select GENERIC_PHY
8+
help
9+
Say 'Y' here to add support for MediaTek T-PHY driver,
10+
it supports multiple usb2.0, usb3.0 ports, PCIe and
11+
SATA, and meanwhile supports two version T-PHY which have
12+
different banks layout, the T-PHY with shared banks between
13+
multi-ports is first version, otherwise is second veriosn,
14+
so you can easily distinguish them by banks layout.

‎drivers/phy/mediatek/Makefile‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#
2+
# Makefile for the phy drivers.
3+
#
4+
5+
obj-$(CONFIG_PHY_MTK_TPHY) += phy-mtk-tphy.o

0 commit comments

Comments
 (0)