Commit e0ddf22e authored by Cam Mayor's avatar Cam Mayor Committed by Russell King

[ARM PATCH] 1453/1: fix clps711x framebuffer "use SRAM?" range

Patch from cam mayor

when setting up the framebuffer on the clps711x platform, the code checks to see if your allocated memory area is less than 38400 bytes.  If it is, a comment is sent to the kernel output suggesting it could be placed into SRAM.  This patch modifies the check so that it is suggested if the allocated memory area is less than OR EQUAL TO 38400 bytes.  This value is important as 38400 bytes is exactly the size of a 320 x 240 x 4bpp screen.  
parent e6591d82
...@@ -342,7 +342,7 @@ static void __init clps711x_guess_lcd_params(struct fb_info *info) ...@@ -342,7 +342,7 @@ static void __init clps711x_guess_lcd_params(struct fb_info *info)
* CLPS7110 - no on-board SRAM * CLPS7110 - no on-board SRAM
* EP7212 - 38400 bytes * EP7212 - 38400 bytes
*/ */
if (size < 38400) { if (size <= 38400) {
printk(KERN_INFO "CLPS711xFB: could use on-board SRAM?\n"); printk(KERN_INFO "CLPS711xFB: could use on-board SRAM?\n");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment