]> git.neil.brown.name Git - history.git/commitdiff
[ARM PATCH] 1453/1: fix clps711x framebuffer "use SRAM?" range
authorCam Mayor <cmayor@ca.rmk.(none)>
Sun, 13 Apr 2003 19:22:24 +0000 (20:22 +0100)
committerRussell King <rmk@flint.arm.linux.org.uk>
Sun, 13 Apr 2003 19:22:24 +0000 (20:22 +0100)
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.

drivers/video/clps711xfb.c

index e54209c0728bdd98316067b6f07da510b3424b0d..a982e7520423718ab9664ef9116538418f5e9821 100644 (file)
@@ -342,7 +342,7 @@ static void __init clps711x_guess_lcd_params(struct fb_info *info)
         * CLPS7110 - no on-board SRAM
         * EP7212   - 38400 bytes
         */
-       if (size < 38400) {
+       if (size <= 38400) {
                printk(KERN_INFO "CLPS711xFB: could use on-board SRAM?\n");
        }