Merge branch 'master' of git://git.denx.de/u-boot-video

This commit is contained in:
Tom Rini
2015-11-30 07:10:18 -05:00
3 changed files with 15 additions and 1 deletions

View File

@@ -143,6 +143,16 @@ __weak int lcd_get_size(int *line_length)
return *line_length * panel_info.vl_row;
}
/*
* Implement a weak default function for boards that optionally
* need to skip the lcd console initialization.
*/
__weak int board_lcd_console_skip(void)
{
/* As default, don't skip cfb init */
return 0;
}
int drv_lcd_init(void)
{
struct stdio_dev lcddev;
@@ -152,6 +162,9 @@ int drv_lcd_init(void)
lcd_init(lcd_base);
if (board_lcd_console_skip())
return 0;
/* Device initialization */
memset(&lcddev, 0, sizeof(lcddev));