Revert "LCD: Add an option to skip registration as an stdio output"
This reverts commit 05bfe13210
.
As discussed on the list, we already have the needed functionality by
defining CONFIG_SYS_CONSOLE_IS_IN_ENV, CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
and adding custom overwrite_console() in the board code.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
This commit is contained in:
parent
be30dfbabb
commit
f5bcfe151e
13
common/lcd.c
13
common/lcd.c
|
@ -143,16 +143,6 @@ __weak int lcd_get_size(int *line_length)
|
||||||
return *line_length * panel_info.vl_row;
|
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)
|
int drv_lcd_init(void)
|
||||||
{
|
{
|
||||||
struct stdio_dev lcddev;
|
struct stdio_dev lcddev;
|
||||||
|
@ -162,9 +152,6 @@ int drv_lcd_init(void)
|
||||||
|
|
||||||
lcd_init(lcd_base);
|
lcd_init(lcd_base);
|
||||||
|
|
||||||
if (board_lcd_console_skip())
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
/* Device initialization */
|
/* Device initialization */
|
||||||
memset(&lcddev, 0, sizeof(lcddev));
|
memset(&lcddev, 0, sizeof(lcddev));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue