From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ilko Iliev Date: Tue, 21 Oct 2008 15:10:02 +0200 Subject: [U-Boot] [PATCH] lcd: print custom strings after the logo Message-ID: <48FDD4AA.40009@ronetix.at> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This patch allows to print custom strings on the LCD after the logo. Signed-off-by: Ilko Iliev 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));