public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] lcd: print custom strings after the logo
@ 2008-10-21 13:10 Ilko Iliev
  2008-10-21 16:23 ` Stelian Pop
  0 siblings, 1 reply; 12+ messages in thread
From: Ilko Iliev @ 2008-10-21 13:10 UTC (permalink / raw)
  To: u-boot

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

Signed-off-by: Ilko Iliev <iliev@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));

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-10-23 20:29 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-21 13:10 [U-Boot] [PATCH] lcd: print custom strings after the logo Ilko Iliev
2008-10-21 16:23 ` Stelian Pop
2008-10-21 16:43   ` Ilko Iliev
2008-10-21 16:54     ` Stelian Pop
2008-10-21 19:40   ` Wolfgang Denk
2008-10-21 20:56     ` Jean-Christophe PLAGNIOL-VILLARD
2008-10-22 14:00       ` Anatolij Gustschin
2008-10-23 18:36     ` Haavard Skinnemoen
2008-10-23 18:53       ` Jean-Christophe PLAGNIOL-VILLARD
2008-10-23 19:08         ` Haavard Skinnemoen
2008-10-23 19:19       ` Wolfgang Denk
2008-10-23 20:29         ` Jean-Christophe PLAGNIOL-VILLARD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox