diff options
author | Inki Dae <inki.dae@samsung.com> | 2014-08-13 04:09:12 -0400 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2014-09-19 11:56:08 -0400 |
commit | 473462a1436b5c4b7e62909985b1c8f9b17f028a (patch) | |
tree | ec5eab68d7e4b5a615c1b26bc7bdb20eea54c06b | |
parent | 78d3a8c6134fbe1fe048b13bddb8e7602affabaa (diff) |
drm/exynos: mipi-dsi: add Exynos3 SoC support
This patch adds Exynos3250/3472 SoCs support.
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
-rw-r--r-- | Documentation/devicetree/bindings/video/exynos_dsim.txt | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_dsi.c | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/video/exynos_dsim.txt b/Documentation/devicetree/bindings/video/exynos_dsim.txt index 31036c667d54..e74243b4b317 100644 --- a/Documentation/devicetree/bindings/video/exynos_dsim.txt +++ b/Documentation/devicetree/bindings/video/exynos_dsim.txt | |||
@@ -2,6 +2,7 @@ Exynos MIPI DSI Master | |||
2 | 2 | ||
3 | Required properties: | 3 | Required properties: |
4 | - compatible: value should be one of the following | 4 | - compatible: value should be one of the following |
5 | "samsung,exynos3250-mipi-dsi" /* for Exynos3250/3472 SoCs */ | ||
5 | "samsung,exynos4210-mipi-dsi" /* for Exynos4 SoCs */ | 6 | "samsung,exynos4210-mipi-dsi" /* for Exynos4 SoCs */ |
6 | "samsung,exynos5410-mipi-dsi" /* for Exynos5410/5420/5440 SoCs */ | 7 | "samsung,exynos5410-mipi-dsi" /* for Exynos5410/5420/5440 SoCs */ |
7 | - reg: physical base address and length of the registers set for the device | 8 | - reg: physical base address and length of the registers set for the device |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index 670c2f9be31c..0065a5a8c786 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c | |||
@@ -304,6 +304,12 @@ struct exynos_dsi { | |||
304 | #define host_to_dsi(host) container_of(host, struct exynos_dsi, dsi_host) | 304 | #define host_to_dsi(host) container_of(host, struct exynos_dsi, dsi_host) |
305 | #define connector_to_dsi(c) container_of(c, struct exynos_dsi, connector) | 305 | #define connector_to_dsi(c) container_of(c, struct exynos_dsi, connector) |
306 | 306 | ||
307 | static struct exynos_dsi_driver_data exynos3_dsi_driver_data = { | ||
308 | .plltmr_reg = 0x50, | ||
309 | .has_freqband = 1, | ||
310 | .has_clklane_stop = 1, | ||
311 | }; | ||
312 | |||
307 | static struct exynos_dsi_driver_data exynos4_dsi_driver_data = { | 313 | static struct exynos_dsi_driver_data exynos4_dsi_driver_data = { |
308 | .plltmr_reg = 0x50, | 314 | .plltmr_reg = 0x50, |
309 | .has_freqband = 1, | 315 | .has_freqband = 1, |
@@ -315,6 +321,8 @@ static struct exynos_dsi_driver_data exynos5_dsi_driver_data = { | |||
315 | }; | 321 | }; |
316 | 322 | ||
317 | static struct of_device_id exynos_dsi_of_match[] = { | 323 | static struct of_device_id exynos_dsi_of_match[] = { |
324 | { .compatible = "samsung,exynos3250-mipi-dsi", | ||
325 | .data = &exynos3_dsi_driver_data }, | ||
318 | { .compatible = "samsung,exynos4210-mipi-dsi", | 326 | { .compatible = "samsung,exynos4210-mipi-dsi", |
319 | .data = &exynos4_dsi_driver_data }, | 327 | .data = &exynos4_dsi_driver_data }, |
320 | { .compatible = "samsung,exynos5410-mipi-dsi", | 328 | { .compatible = "samsung,exynos5410-mipi-dsi", |