drm/exynos: fimd: Add support for S3C64xx SoCs
authorTomasz Figa <tomasz.figa@gmail.com>
Wed, 1 May 2013 19:02:29 +0000 (21:02 +0200)
committerInki Dae <daeinki@gmail.com>
Fri, 28 Jun 2013 12:12:51 +0000 (21:12 +0900)
The FIMD block present on S3C6400/S3C6410 SoCs is compatible with this
driver, so it can be supported by it as well.

This patch adds appropriate device IDs and driver data to enable this
driver for S3C64xx SoCs.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Acked-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_fimd.c

index 7681a8afa6ed0b66fd33466773e40de0c87d4c77..3194107f7025f5b62b9ef08023f004204a43ee0e 100644 (file)
@@ -68,6 +68,11 @@ struct fimd_driver_data {
        unsigned int has_clksel:1;
 };
 
+static struct fimd_driver_data s3c64xx_fimd_driver_data = {
+       .timing_base = 0x0,
+       .has_clksel = 1,
+};
+
 static struct fimd_driver_data exynos4_fimd_driver_data = {
        .timing_base = 0x0,
        .has_shadowcon = 1,
@@ -117,6 +122,8 @@ struct fimd_context {
 
 #ifdef CONFIG_OF
 static const struct of_device_id fimd_driver_dt_match[] = {
+       { .compatible = "samsung,s3c6400-fimd",
+         .data = &s3c64xx_fimd_driver_data },
        { .compatible = "samsung,exynos4210-fimd",
          .data = &exynos4_fimd_driver_data },
        { .compatible = "samsung,exynos5250-fimd",
@@ -1108,6 +1115,9 @@ static int fimd_runtime_resume(struct device *dev)
 
 static struct platform_device_id fimd_driver_ids[] = {
        {
+               .name           = "s3c64xx-fb",
+               .driver_data    = (unsigned long)&s3c64xx_fimd_driver_data,
+       }, {
                .name           = "exynos4-fb",
                .driver_data    = (unsigned long)&exynos4_fimd_driver_data,
        }, {