Commit 90f80d95 authored by Chun-Kuang Hu's avatar Chun-Kuang Hu

phy: mediatek: Move mtk_mipi_dsi_phy driver into drivers/phy/mediatek folder

mtk_mipi_dsi_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_mipi_dsi_phy driver into phy driver folder.
Signed-off-by: default avatarChun-Kuang Hu <chunkuang.hu@kernel.org>
Acked-by: default avatarChunfeng Yun <chunfeng.yun@mediatek.com>
Acked-by: default avatarVinod Koul <vkoul@kernel.org>
parent c3c88422
...@@ -28,10 +28,3 @@ config DRM_MEDIATEK_HDMI ...@@ -28,10 +28,3 @@ config DRM_MEDIATEK_HDMI
select PHY_MTK_HDMI select PHY_MTK_HDMI
help help
DRM/KMS HDMI driver for Mediatek SoCs DRM/KMS HDMI driver for Mediatek SoCs
config PHY_MTK_MIPI_DSI
tristate "Mediatek MIPI-DSI-PHY Driver"
depends on ARCH_MEDIATEK && OF
select GENERIC_PHY
help
Support MIPI DSI PHY for Mediatek SoCs.
...@@ -19,9 +19,3 @@ mediatek-drm-hdmi-objs := mtk_cec.o \ ...@@ -19,9 +19,3 @@ mediatek-drm-hdmi-objs := mtk_cec.o \
mtk_hdmi_ddc.o mtk_hdmi_ddc.o
obj-$(CONFIG_DRM_MEDIATEK_HDMI) += mediatek-drm-hdmi.o obj-$(CONFIG_DRM_MEDIATEK_HDMI) += mediatek-drm-hdmi.o
phy-mtk-mipi-dsi-drv-objs := mtk_mipi_tx.o \
mtk_mt8173_mipi_tx.o \
mtk_mt8183_mipi_tx.o
obj-$(CONFIG_PHY_MTK_MIPI_DSI) += phy-mtk-mipi-dsi-drv.o
...@@ -42,3 +42,10 @@ config PHY_MTK_HDMI ...@@ -42,3 +42,10 @@ config PHY_MTK_HDMI
select GENERIC_PHY select GENERIC_PHY
help help
Support HDMI PHY for Mediatek SoCs. Support HDMI PHY for Mediatek SoCs.
config PHY_MTK_MIPI_DSI
tristate "MediaTek MIPI-DSI Driver"
depends on ARCH_MEDIATEK && OF
select GENERIC_PHY
help
Support MIPI DSI for Mediatek SoCs.
...@@ -11,3 +11,8 @@ phy-mtk-hdmi-drv-y := phy-mtk-hdmi.o ...@@ -11,3 +11,8 @@ 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-mt2701.o
phy-mtk-hdmi-drv-y += phy-mtk-hdmi-mt8173.o phy-mtk-hdmi-drv-y += phy-mtk-hdmi-mt8173.o
obj-$(CONFIG_PHY_MTK_HDMI) += phy-mtk-hdmi-drv.o obj-$(CONFIG_PHY_MTK_HDMI) += phy-mtk-hdmi-drv.o
phy-mtk-mipi-dsi-drv-y := phy-mtk-mipi-dsi.o
phy-mtk-mipi-dsi-drv-y += phy-mtk-mipi-dsi-mt8173.o
phy-mtk-mipi-dsi-drv-y += phy-mtk-mipi-dsi-mt8183.o
obj-$(CONFIG_PHY_MTK_MIPI_DSI) += phy-mtk-mipi-dsi-drv.o
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* Author: jitao.shi <jitao.shi@mediatek.com> * Author: jitao.shi <jitao.shi@mediatek.com>
*/ */
#include "mtk_mipi_tx.h" #include "phy-mtk-mipi-dsi.h"
#define MIPITX_DSI_CON 0x00 #define MIPITX_DSI_CON 0x00
#define RG_DSI_LDOCORE_EN BIT(0) #define RG_DSI_LDOCORE_EN BIT(0)
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* Author: jitao.shi <jitao.shi@mediatek.com> * Author: jitao.shi <jitao.shi@mediatek.com>
*/ */
#include "mtk_mipi_tx.h" #include "phy-mtk-mipi-dsi.h"
#define MIPITX_LANE_CON 0x000c #define MIPITX_LANE_CON 0x000c
#define RG_DSI_CPHY_T1DRV_EN BIT(0) #define RG_DSI_CPHY_T1DRV_EN BIT(0)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* Copyright (c) 2015 MediaTek Inc. * Copyright (c) 2015 MediaTek Inc.
*/ */
#include "mtk_mipi_tx.h" #include "phy-mtk-mipi-dsi.h"
inline struct mtk_mipi_tx *mtk_mipi_tx_from_clk_hw(struct clk_hw *hw) inline struct mtk_mipi_tx *mtk_mipi_tx_from_clk_hw(struct clk_hw *hw)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment