diff options
author | Brian Bennett <brian.bennett@arm.com> | 2014-03-12 15:56:51 +0000 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2014-07-16 09:58:14 +0800 |
commit | 5f1beaa21a10eb4f9192f399c113e5ae25606f9d (patch) | |
tree | 8338612dc4fe3996b24204e333fe6879031e3bd6 /drivers/video | |
parent | af3b44ad16f779e0b9cffe8b8f77be75fa162fd3 (diff) |
amba-clcd: add 888 caps support
Add 888 caps support to the CLCD driver and increase the smem_len to
allow 32bpp to be used.
Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
(cherry picked from commit 4279dae7103c09937081a5ccb82b0db4eddae25b)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/amba-clcd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/amba-clcd.c b/drivers/video/amba-clcd.c index c6c393f4f201..e30cc7a7fd43 100644 --- a/drivers/video/amba-clcd.c +++ b/drivers/video/amba-clcd.c @@ -780,10 +780,10 @@ static int clcdfb_dt_init(struct clcd_fb *fb) if (!fb->panel) return -EINVAL; - fb->fb.fix.smem_len = fb->panel->mode.xres * fb->panel->mode.yres * 2; + fb->fb.fix.smem_len = fb->panel->mode.xres * fb->panel->mode.yres * 4; fb->board->name = "Device Tree CLCD PL111"; - fb->board->caps = CLCD_CAP_5551 | CLCD_CAP_565; + fb->board->caps = CLCD_CAP_5551 | CLCD_CAP_565 | CLCD_CAP_888; fb->board->check = clcdfb_check; fb->board->decode = clcdfb_decode; |