[U-Boot] [PATCH] lcd: print custom strings after the logo

Ilko Iliev iliev at ronetix.at
Tue Oct 21 15:10:02 CEST 2008


This patch allows to print custom strings on the LCD after the logo.

Signed-off-by: Ilko Iliev <iliev at ronetix.at>

index d104b26..a94a4da 100644
--- a/common/lcd.c
+++ b/common/lcd.c
@@ -827,11 +827,19 @@ static void *lcd_logo (void)
        sprintf (info, "%s", U_BOOT_VERSION);
        lcd_drawchars (LCD_INFO_X, LCD_INFO_Y, (uchar *)info, strlen(info));

-       sprintf (info, "(C) 2008 ATMEL Corp");
+#ifndef CONFIG_LCD_LOGO_TEXT1
+# define CONFIG_LCD_LOGO_TEXT1 "(C) 2008 ATMEL Corp"
+#endif
+
+#ifndef CONFIG_LCD_LOGO_TEXT2
+# define CONFIG_LCD_LOGO_TEXT2 "at91support at atmel.com"
+#endif
+
+       sprintf (info, CONFIG_LCD_LOGO_TEXT1);
        lcd_drawchars (LCD_INFO_X, LCD_INFO_Y + VIDEO_FONT_HEIGHT,
                                        (uchar *)info, strlen(info));

-       sprintf (info, "at91support at atmel.com");
+       sprintf (info, CONFIG_LCD_LOGO_TEXT2);
        lcd_drawchars (LCD_INFO_X, LCD_INFO_Y + VIDEO_FONT_HEIGHT * 2,
                                        (uchar *)info, strlen(info));



More information about the U-Boot mailing list