]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - cpu/mpc8xx/lcd.c
* Fix "cls" command when used with splash screen
[people/ms/u-boot.git] / cpu / mpc8xx / lcd.c
index 794ca025096c9c171e52a2729a5ee13c5a81691b..882a146652a0394d0349cde0922151f53ebe2f78 100644 (file)
@@ -1333,9 +1333,11 @@ static void *lcd_logo (void)
 #ifdef CONFIG_SPLASH_SCREEN
        char *s;
        ulong addr;
+       static int do_splash = 1;
 
-       if ((s = getenv("splashimage")) != NULL) {
+       if (do_splash && (s = getenv("splashimage")) != NULL) {
                addr = simple_strtoul(s, NULL, 16);
+               do_splash = 0;
 
                if (lcd_display_bitmap (addr, 0, 0) == 0) {
                        return ((void *)lcd_base);