]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
phy: mediatek: Move mtk_hdmi_phy driver into drivers/phy/mediatek folder
authorCK Hu <ck.hu@mediatek.com>
Mon, 13 May 2019 02:22:25 +0000 (10:22 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Sat, 5 Sep 2020 23:03:21 +0000 (07:03 +0800)
mtk_hdmi_phy is currently placed inside mediatek drm driver, but it's
more suitable to place a phy driver into phy driver folder, so move
mtk_hdmi_phy driver into phy driver folder.

Signed-off-by: CK Hu <ck.hu@mediatek.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Acked-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Tested-by: Frank Wunderlich <frank-w@public-files.de>
drivers/gpu/drm/mediatek/Kconfig
drivers/gpu/drm/mediatek/Makefile
drivers/phy/mediatek/Kconfig
drivers/phy/mediatek/Makefile
drivers/phy/mediatek/phy-mtk-hdmi-mt2701.c [moved from drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c with 99% similarity]
drivers/phy/mediatek/phy-mtk-hdmi-mt8173.c [moved from drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c with 99% similarity]
drivers/phy/mediatek/phy-mtk-hdmi.c [moved from drivers/gpu/drm/mediatek/mtk_hdmi_phy.c with 99% similarity]
drivers/phy/mediatek/phy-mtk-hdmi.h [moved from drivers/gpu/drm/mediatek/mtk_hdmi_phy.h with 100% similarity]

index 6363f2c1cdbc2b229878ac4ecb7a61a3fa4d52e6..65cd03a4be29420d217a70dc7740fae5f590b0b9 100644 (file)
@@ -27,10 +27,3 @@ config DRM_MEDIATEK_HDMI
        select PHY_MTK_HDMI
        help
          DRM/KMS HDMI driver for Mediatek SoCs
-
-config PHY_MTK_HDMI
-       tristate "MediaTek HDMI-PHY Driver"
-       depends on ARCH_MEDIATEK && OF
-       select GENERIC_PHY
-       help
-         Support HDMI PHY for Mediatek SoCs.
index fcbef23aa6cec6daa482f3fbff0783d2e878968d..77b0fd86063d3c443743be98cb115ecbf0e1e251 100644 (file)
@@ -22,9 +22,3 @@ mediatek-drm-hdmi-objs := mtk_cec.o \
                          mtk_hdmi_ddc.o
 
 obj-$(CONFIG_DRM_MEDIATEK_HDMI) += mediatek-drm-hdmi.o
-
-phy-mtk-hdmi-drv-objs := mtk_hdmi_phy.o \
-                        mtk_mt2701_hdmi_phy.o \
-                        mtk_mt8173_hdmi_phy.o
-
-obj-$(CONFIG_PHY_MTK_HDMI) += phy-mtk-hdmi-drv.o
index dee757c957f2fa636cf96f77f44eca9b28ed6076..50c5e9306e19b704b4f11eee9b78cef3dcfe5e32 100644 (file)
@@ -35,3 +35,10 @@ config PHY_MTK_XSPHY
          Enable this to support the SuperSpeedPlus XS-PHY transceiver for
          USB3.1 GEN2 controllers on MediaTek chips. The driver supports
          multiple USB2.0, USB3.1 GEN2 ports.
+
+config PHY_MTK_HDMI
+       tristate "MediaTek HDMI-PHY Driver"
+       depends on ARCH_MEDIATEK && OF
+       select GENERIC_PHY
+       help
+         Support HDMI PHY for Mediatek SoCs.
index 08a8e6a97b1edd10bc191baa23e6f84424b640ea..6325e38709eda269d4f481be0e4c944ac8095d93 100644 (file)
@@ -6,3 +6,8 @@
 obj-$(CONFIG_PHY_MTK_TPHY)             += phy-mtk-tphy.o
 obj-$(CONFIG_PHY_MTK_UFS)              += phy-mtk-ufs.o
 obj-$(CONFIG_PHY_MTK_XSPHY)            += phy-mtk-xsphy.o
+
+phy-mtk-hdmi-drv-y                     := phy-mtk-hdmi.o
+phy-mtk-hdmi-drv-y                     += phy-mtk-hdmi-mt2701.o
+phy-mtk-hdmi-drv-y                     += phy-mtk-hdmi-mt8173.o
+obj-$(CONFIG_PHY_MTK_HDMI)             += phy-mtk-hdmi-drv.o
similarity index 99%
rename from drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c
rename to drivers/phy/mediatek/phy-mtk-hdmi-mt2701.c
index 99fe05cd3598c6a4b3ccf27afb603863d682c7b8..a6cb1dea3d0ce6d951b0c340ba7ed341d67340c3 100644 (file)
@@ -4,7 +4,7 @@
  * Author: Chunhui Dai <chunhui.dai@mediatek.com>
  */
 
-#include "mtk_hdmi_phy.h"
+#include "phy-mtk-hdmi.h"
 
 #define HDMI_CON0      0x00
 #define RG_HDMITX_DRV_IBIAS            0
similarity index 99%
rename from drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c
rename to drivers/phy/mediatek/phy-mtk-hdmi-mt8173.c
index 827b93786facb137fc62b3b3c1dc14fa66fa2bba..6cdfdf5a698a4425fa95b2764753cc410e2f20ca 100644 (file)
@@ -4,7 +4,7 @@
  * Author: Jie Qiu <jie.qiu@mediatek.com>
  */
 
-#include "mtk_hdmi_phy.h"
+#include "phy-mtk-hdmi.h"
 
 #define HDMI_CON0              0x00
 #define RG_HDMITX_PLL_EN               BIT(31)
similarity index 99%
rename from drivers/gpu/drm/mediatek/mtk_hdmi_phy.c
rename to drivers/phy/mediatek/phy-mtk-hdmi.c
index fe022acddbef280453fd0727dccbe06cfd33ef47..8fc83f01a72060ad01badf18ae14ae0006f69357 100644 (file)
@@ -4,7 +4,7 @@
  * Author: Jie Qiu <jie.qiu@mediatek.com>
  */
 
-#include "mtk_hdmi_phy.h"
+#include "phy-mtk-hdmi.h"
 
 static int mtk_hdmi_phy_power_on(struct phy *phy);
 static int mtk_hdmi_phy_power_off(struct phy *phy);