Skip to content

Commit

Permalink
phy: mediatek: Move mtk_mipi_dsi_phy driver into drivers/phy/mediatek…
Browse files Browse the repository at this point in the history
… 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: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Acked-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
  • Loading branch information
Chun-Kuang Hu committed Nov 30, 2020
1 parent c3c8842 commit 90f80d9
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 16 deletions.
7 changes: 0 additions & 7 deletions drivers/gpu/drm/mediatek/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,3 @@ config DRM_MEDIATEK_HDMI
select PHY_MTK_HDMI
help
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.
6 changes: 0 additions & 6 deletions drivers/gpu/drm/mediatek/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,3 @@ mediatek-drm-hdmi-objs := mtk_cec.o \
mtk_hdmi_ddc.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
7 changes: 7 additions & 0 deletions drivers/phy/mediatek/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,10 @@ config PHY_MTK_HDMI
select GENERIC_PHY
help
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.
5 changes: 5 additions & 0 deletions drivers/phy/mediatek/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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-mt8173.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
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Author: jitao.shi <jitao.shi@mediatek.com>
*/

#include "mtk_mipi_tx.h"
#include "phy-mtk-mipi-dsi.h"

#define MIPITX_DSI_CON 0x00
#define RG_DSI_LDOCORE_EN BIT(0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Author: jitao.shi <jitao.shi@mediatek.com>
*/

#include "mtk_mipi_tx.h"
#include "phy-mtk-mipi-dsi.h"

#define MIPITX_LANE_CON 0x000c
#define RG_DSI_CPHY_T1DRV_EN BIT(0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* 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)
{
Expand Down
File renamed without changes.

0 comments on commit 90f80d9

Please sign in to comment.