]> git.sur5r.net Git - u-boot/commitdiff
lcd: Set lcd_is_enabled before clearing the screen
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Mon, 1 Sep 2008 14:21:21 +0000 (16:21 +0200)
committerAnatolij Gustschin <agust@denx.de>
Sat, 25 Oct 2008 20:59:41 +0000 (22:59 +0200)
This allows the logo/info rendering routines to use the regular
lcd_putc/lcd_puts/lcd_printf calls.

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
common/lcd.c

index 03d58411cf24526ee3f254d15cfae8d83c00575b..813c8d827d6c6778b8654f075bbf58581a018002 100644 (file)
@@ -440,6 +440,7 @@ static int lcd_init (void *lcdbase)
        debug ("[LCD] Initializing LCD frambuffer at %p\n", lcdbase);
 
        lcd_ctrl_init (lcdbase);
+       lcd_is_enabled = 1;
        lcd_clear (NULL, 1, 1, NULL);   /* dummy args */
        lcd_enable ();
 
@@ -450,7 +451,6 @@ static int lcd_init (void *lcdbase)
 #else
        console_row = 1;        /* leave 1 blank line below logo */
 #endif
-       lcd_is_enabled = 1;
 
        return 0;
 }