[PATCH WIP 6/7] phy: samsung,dp-video-phy: Add exynosautov9 dp phy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I think this should refactoring to set offset on dt-binding.
In exynosautov9 there are 2 dp phy.

It will better like

dp_0: dp-phy {
    offset = <dp_0_value>;
}

dp_1: dp-phy {
    offset = <dp_1_value>;
}

Signed-off-by: Kwanghoon Son <k.son@xxxxxxxxxxx>
---
 drivers/phy/samsung/phy-exynos-dp-video.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/drivers/phy/samsung/phy-exynos-dp-video.c b/drivers/phy/samsung/phy-exynos-dp-video.c
index a636dee07585..0ba929315abd 100644
--- a/drivers/phy/samsung/phy-exynos-dp-video.c
+++ b/drivers/phy/samsung/phy-exynos-dp-video.c
@@ -58,6 +58,10 @@ static const struct exynos_dp_video_phy_drvdata exynos5420_dp_video_phy = {
 	.phy_ctrl_offset	= EXYNOS5420_DPTX_PHY_CONTROL,
 };
 
+static const struct exynos_dp_video_phy_drvdata exynosautov9_dp_video_phy = {
+	.phy_ctrl_offset	= 0x073c,
+};
+
 static const struct of_device_id exynos_dp_video_phy_of_match[] = {
 	{
 		.compatible = "samsung,exynos5250-dp-video-phy",
@@ -65,8 +69,11 @@ static const struct of_device_id exynos_dp_video_phy_of_match[] = {
 	}, {
 		.compatible = "samsung,exynos5420-dp-video-phy",
 		.data = &exynos5420_dp_video_phy,
+	}, {
+		.compatible = "samsung,exynosautov9-dp-video-phy",
+		.data = &exynosautov9_dp_video_phy,
 	},
-	{ },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, exynos_dp_video_phy_of_match);
 

-- 
2.39.2





[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux for Synopsys ARC Processors]    
  • [Linux on Unisoc (RDA Micro) SoCs]     [Linux Actions SoC]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  •   Powered by Linux