diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2013-06-28 11:21:25 +0200 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 11:43:15 +0900 |
commit | e1aa5a7ca6152437d3c459aa2dca8ba7829d9713 (patch) | |
tree | 44d0d3df29571d1084d2a38e6bcf7cbccd867160 /include | |
parent | 0033548f7834b8786676c41564533adbbbd93791 (diff) | |
download | linux-3.10-e1aa5a7ca6152437d3c459aa2dca8ba7829d9713.tar.gz linux-3.10-e1aa5a7ca6152437d3c459aa2dca8ba7829d9713.tar.bz2 linux-3.10-e1aa5a7ca6152437d3c459aa2dca8ba7829d9713.zip |
video: exynos_mipi_dsim: Use the generic PHY driver
Use the generic PHY API instead of the platform callback to control
the MIPI DSIM DPHY. The 'phy_label' field is added to the platform
data structure to allow PHY lookup on non-dt platforms.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Acked-by: Donghwa Lee <dh09.lee@samsung.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/video/exynos_mipi_dsim.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/video/exynos_mipi_dsim.h b/include/video/exynos_mipi_dsim.h index c6b1bf53a8b..68433852b81 100644 --- a/include/video/exynos_mipi_dsim.h +++ b/include/video/exynos_mipi_dsim.h @@ -216,6 +216,7 @@ struct mipi_dsim_config { * automatically. * @e_clk_src: select byte clock source. * @pd: pointer to MIPI-DSI driver platform data. + * @phy: pointer to the generic PHY */ struct mipi_dsim_device { struct device *dev; @@ -236,6 +237,7 @@ struct mipi_dsim_device { bool suspended; struct mipi_dsim_platform_data *pd; + struct phy *phy; }; /* @@ -248,7 +250,7 @@ struct mipi_dsim_device { * @enabled: indicate whether mipi controller got enabled or not. * @lcd_panel_info: pointer for lcd panel specific structure. * this structure specifies width, height, timing and polarity and so on. - * @phy_enable: pointer to a callback controlling D-PHY enable/reset + * @phy_label: the generic PHY label */ struct mipi_dsim_platform_data { char lcd_panel_name[PANEL_NAME_SIZE]; @@ -257,7 +259,7 @@ struct mipi_dsim_platform_data { unsigned int enabled; void *lcd_panel_info; - int (*phy_enable)(struct platform_device *pdev, bool on); + const char *phy_label; }; /* |