diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-04-28 10:43:52 +0100 |
---|---|---|
committer | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-04-28 10:43:52 +0100 |
commit | 82235e9170f19fa327361ee82a76618e60f2db47 (patch) | |
tree | 735bdadb8025241a514c672537f231c614010c61 /include/asm-arm/hardware | |
parent | c4d12b98ead8bb2437f656c17e7ef065fa160e13 (diff) |
[PATCH] ARM: Fix AMBA CLCD fb driver for 32bpp
We were supporting 24bpp. However, the pixel organisation in
memory was 0RGB, so it was 24bpp in 32bit words. This means
we're actually supporting 32bpp and not 24bpp.
Also, add a check to ensure that we don't exceed the available
framebuffer when changing display resolutions.
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/hardware')
-rw-r--r-- | include/asm-arm/hardware/amba_clcd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-arm/hardware/amba_clcd.h b/include/asm-arm/hardware/amba_clcd.h index 476b6398ae1..d6ad33e52ea 100644 --- a/include/asm-arm/hardware/amba_clcd.h +++ b/include/asm-arm/hardware/amba_clcd.h @@ -211,7 +211,7 @@ static inline void clcdfb_decode(struct clcd_fb *fb, struct clcd_regs *regs) case 16: val |= CNTL_LCDBPP16; break; - case 24: + case 32: val |= CNTL_LCDBPP24; break; } |