diff options
author | Tushar Behera <tushar.behera@linaro.org> | 2013-03-08 14:38:46 +0530 |
---|---|---|
committer | Tushar Behera <tushar.behera@linaro.org> | 2013-04-16 13:18:08 +0530 |
commit | 7c41e6b972919d39536ed49941cdd389bf2a4ad2 (patch) | |
tree | c90ea45dfb7c52a382438e04fca1edde917d44c2 | |
parent | be757fb4d05bd6d05338a89516c9a681ac1c8b49 (diff) |
video: s3c-fb: Skip GPIO setting for Arndale board
This is a hack to setup a dummy framebuffer.
Arndale board doesn't have GPIO lines for RGB_DATA[23:0], so skip
this.
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
-rw-r--r-- | drivers/video/s3c-fb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c index 7288c89a0328..1b6b01940682 100644 --- a/drivers/video/s3c-fb.c +++ b/drivers/video/s3c-fb.c @@ -30,6 +30,7 @@ #include <video/samsung_fimd.h> #include <mach/map.h> #include <plat/fb.h> +#include <plat/cpu.h> /* This driver will export a number of framebuffer interfaces depending * on the configuration passed in via the platform data. Each fb instance @@ -1420,6 +1421,9 @@ static int s3c_fb_dt_parse_gpios(struct device *dev, struct s3c_fb *sfb, { int nr_gpios, idx, gpio, ret; + if (soc_is_exynos5250()) + return 0; + nr_gpios = sfb->pdata->win[0]->max_bpp + 4; sfb->gpios = devm_kzalloc(dev, sizeof(int) * nr_gpios, GFP_KERNEL); if (!sfb->gpios) { |