aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorBrian Bennett <brian.bennett@arm.com>2014-03-12 15:56:51 +0000
committerJon Medhurst <tixy@linaro.org>2014-03-31 13:58:12 +0100
commit4279dae7103c09937081a5ccb82b0db4eddae25b (patch)
tree8338612dc4fe3996b24204e333fe6879031e3bd6 /include/linux
parent78268af2fcd6441fde8994ca204bfaf55e38d618 (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>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/amba/clcd.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/linux/amba/clcd.h b/include/linux/amba/clcd.h
index e82e3ee2c54..4a53250f970 100644
--- a/include/linux/amba/clcd.h
+++ b/include/linux/amba/clcd.h
@@ -243,6 +243,9 @@ static inline void clcdfb_decode(struct clcd_fb *fb, struct clcd_regs *regs)
val |= CNTL_BGR;
}
+ /* Reset the current colour depth */
+ val &= ~CNTL_LCDBPP16_444;
+
switch (var->bits_per_pixel) {
case 1:
val |= CNTL_LCDBPP1;
@@ -264,14 +267,15 @@ static inline void clcdfb_decode(struct clcd_fb *fb, struct clcd_regs *regs)
*/
if (amba_part(fb->dev) == 0x110 ||
var->green.length == 5)
- val |= CNTL_LCDBPP16;
+ val |= CNTL_LCDBPP16 | CNTL_BGR;
else if (var->green.length == 6)
- val |= CNTL_LCDBPP16_565;
+ val |= CNTL_LCDBPP16_565 | CNTL_BGR;
else
- val |= CNTL_LCDBPP16_444;
+ val |= CNTL_LCDBPP16_444 | CNTL_BGR;
break;
case 32:
val |= CNTL_LCDBPP24;
+ val &= ~CNTL_BGR;
break;
}