]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
video: Drop CONFIG_LCD_INFO_BELOW_LOGO
authorSimon Glass <sjg@chromium.org>
Sun, 16 Oct 2022 21:08:59 +0000 (15:08 -0600)
committerAnatolij Gustschin <agust@denx.de>
Sun, 30 Oct 2022 19:07:16 +0000 (20:07 +0100)
This option is not used anymore since the LCD implementation is being
removed. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
api/api_display.c
common/lcd.c
common/lcd_console.c
drivers/video/Kconfig
include/lcd.h

index 4f2cdd7330e2fd43ffeb472417a3d62f80a591a7..84debac48af02bfd6325e654efa0de0ec48bfcb0 100644 (file)
@@ -10,7 +10,7 @@
 #include <video_font.h> /* Get font width and height */
 
 /* lcd.h needs BMP_LOGO_HEIGHT to calculate CONSOLE_ROWS */
-#if defined(CONFIG_LCD_LOGO) && !defined(CONFIG_LCD_INFO_BELOW_LOGO)
+#if defined(CONFIG_LCD_LOGO)
 #include <bmp_logo.h>
 #endif
 
index 2134e60324351f4f1f7f151524b887b67bf0abb7..53ff8dd7444d8f21bcd63924e781313ac402b7d4 100644 (file)
@@ -178,7 +178,7 @@ void lcd_clear(void)
        }
 
        lcd_logo();
-#if defined(CONFIG_LCD_LOGO) && !defined(CONFIG_LCD_INFO_BELOW_LOGO)
+#if defined(CONFIG_LCD_LOGO)
        addr = (ulong)lcd_base + BMP_LOGO_HEIGHT * lcd_line_length;
        lcd_init_console((void *)addr, panel_info.vl_col,
                         panel_info.vl_row, panel_info.vl_rot);
@@ -209,11 +209,7 @@ static int lcd_init(void *lcdbase)
 
        /* Initialize the console */
        lcd_set_col(0);
-#ifdef CONFIG_LCD_INFO_BELOW_LOGO
-       lcd_set_row(7 + BMP_LOGO_HEIGHT / VIDEO_FONT_HEIGHT);
-#else
        lcd_set_row(1); /* leave 1 blank line below logo */
-#endif
 
        return 0;
 }
index ed36c78440c0a5469e3668c634436b4823fedf20..cde96deb3c29860328e67cb701b93fe90a3ad852 100644 (file)
@@ -125,7 +125,7 @@ static inline void console_newline(void)
 void console_calc_rowcol(struct console_t *pcons, u32 sizex, u32 sizey)
 {
        pcons->cols = sizex / VIDEO_FONT_WIDTH;
-#if defined(CONFIG_LCD_LOGO) && !defined(CONFIG_LCD_INFO_BELOW_LOGO)
+#if defined(CONFIG_LCD_LOGO)
        pcons->rows = (pcons->lcdsizey - BMP_LOGO_HEIGHT);
        pcons->rows /= VIDEO_FONT_HEIGHT;
 #else
index 3a692b8a3c5cabb3280ed3db4d928a2880733597..9083267d0073e2139f0b514595a34d93328a1a6e 100644 (file)
@@ -736,10 +736,6 @@ config LCD_LOGO
        bool "Show a logo on screen"
        depends on LCD
 
-config LCD_INFO_BELOW_LOGO
-       bool "Show LCD info below the on-screen logo"
-       depends on LCD_INFO && LCD_LOGO
-
 config VIDEO_DW_HDMI
        bool
        help
index 4f180692781183d85a1cc40db8d671af98dc58ea..751b0032efc7267898893fac949bba229e06236e 100644 (file)
@@ -144,10 +144,7 @@ void lcd_sync(void);
 #define LCD_COLOR16    4
 #define LCD_COLOR32    5
 
-#if defined(CONFIG_LCD_INFO_BELOW_LOGO)
-#define LCD_INFO_X             0
-#define LCD_INFO_Y             (BMP_LOGO_HEIGHT + VIDEO_FONT_HEIGHT)
-#elif defined(CONFIG_LCD_LOGO)
+#if defined(CONFIG_LCD_LOGO)
 #define LCD_INFO_X             (BMP_LOGO_WIDTH + 4 * VIDEO_FONT_WIDTH)
 #define LCD_INFO_Y             VIDEO_FONT_HEIGHT
 #else