diff options
author | Inki Dae <inki.dae@samsung.com> | 2014-08-18 03:53:19 -0400 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2014-09-19 11:56:08 -0400 |
commit | d6ce7b5829a676d94e6f6a0d5acfec246d880af3 (patch) | |
tree | f13398f13f479d02539fd8aadf939a0a921d1b30 | |
parent | 473462a1436b5c4b7e62909985b1c8f9b17f028a (diff) |
drm/exynos: fimd: add Exynos3 SoC 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/samsung-fimd.txt | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_fimd.c | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/video/samsung-fimd.txt b/Documentation/devicetree/bindings/video/samsung-fimd.txt index ecc899b9817b..4e6c77c85546 100644 --- a/Documentation/devicetree/bindings/video/samsung-fimd.txt +++ b/Documentation/devicetree/bindings/video/samsung-fimd.txt | |||
@@ -9,6 +9,7 @@ Required properties: | |||
9 | "samsung,s3c2443-fimd"; /* for S3C24XX SoCs */ | 9 | "samsung,s3c2443-fimd"; /* for S3C24XX SoCs */ |
10 | "samsung,s3c6400-fimd"; /* for S3C64XX SoCs */ | 10 | "samsung,s3c6400-fimd"; /* for S3C64XX SoCs */ |
11 | "samsung,s5pv210-fimd"; /* for S5PV210 SoC */ | 11 | "samsung,s5pv210-fimd"; /* for S5PV210 SoC */ |
12 | "samsung,exynos3250-fimd"; /* for Exynos3250/3472 SoCs */ | ||
12 | "samsung,exynos4210-fimd"; /* for Exynos4 SoCs */ | 13 | "samsung,exynos4210-fimd"; /* for Exynos4 SoCs */ |
13 | "samsung,exynos5250-fimd"; /* for Exynos5 SoCs */ | 14 | "samsung,exynos5250-fimd"; /* for Exynos5 SoCs */ |
14 | 15 | ||
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index 5d09e33fef87..909e6478d7d5 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c | |||
@@ -104,6 +104,14 @@ static struct fimd_driver_data s3c64xx_fimd_driver_data = { | |||
104 | .has_limited_fmt = 1, | 104 | .has_limited_fmt = 1, |
105 | }; | 105 | }; |
106 | 106 | ||
107 | static struct fimd_driver_data exynos3_fimd_driver_data = { | ||
108 | .timing_base = 0x20000, | ||
109 | .lcdblk_offset = 0x210, | ||
110 | .lcdblk_bypass_shift = 1, | ||
111 | .has_shadowcon = 1, | ||
112 | .has_vidoutcon = 1, | ||
113 | }; | ||
114 | |||
107 | static struct fimd_driver_data exynos4_fimd_driver_data = { | 115 | static struct fimd_driver_data exynos4_fimd_driver_data = { |
108 | .timing_base = 0x0, | 116 | .timing_base = 0x0, |
109 | .lcdblk_offset = 0x210, | 117 | .lcdblk_offset = 0x210, |
@@ -168,6 +176,8 @@ struct fimd_context { | |||
168 | static const struct of_device_id fimd_driver_dt_match[] = { | 176 | static const struct of_device_id fimd_driver_dt_match[] = { |
169 | { .compatible = "samsung,s3c6400-fimd", | 177 | { .compatible = "samsung,s3c6400-fimd", |
170 | .data = &s3c64xx_fimd_driver_data }, | 178 | .data = &s3c64xx_fimd_driver_data }, |
179 | { .compatible = "samsung,exynos3250-fimd", | ||
180 | .data = &exynos3_fimd_driver_data }, | ||
171 | { .compatible = "samsung,exynos4210-fimd", | 181 | { .compatible = "samsung,exynos4210-fimd", |
172 | .data = &exynos4_fimd_driver_data }, | 182 | .data = &exynos4_fimd_driver_data }, |
173 | { .compatible = "samsung,exynos5250-fimd", | 183 | { .compatible = "samsung,exynos5250-fimd", |