]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
video: Drop CONFIG_LCD_INFO
authorSimon Glass <sjg@chromium.org>
Sun, 16 Oct 2022 21:11:32 +0000 (15:11 -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>
board/atmel/at91sam9261ek/at91sam9261ek.c
board/atmel/at91sam9263ek/at91sam9263ek.c
board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c
board/atmel/at91sam9n12ek/at91sam9n12ek.c
board/atmel/at91sam9rlek/at91sam9rlek.c
common/lcd.c
configs/pm9261_defconfig
configs/pm9263_defconfig
drivers/video/Kconfig
include/lcd.h

index 8a7a960c26b1d6567e17f93be31346515e3143bb..e5fdf383996b975daa0e194933fa7c000311e150 100644 (file)
@@ -194,34 +194,6 @@ static void at91sam9261ek_lcd_hw_init(void)
 #endif
 }
 
-#ifdef CONFIG_LCD_INFO
-#include <nand.h>
-#include <version.h>
-
-void lcd_show_board_info(void)
-{
-       ulong dram_size, nand_size;
-       int i;
-       char temp[32];
-
-       lcd_printf ("%s\n", U_BOOT_VERSION);
-       lcd_printf ("(C) 2008 ATMEL Corp\n");
-       lcd_printf ("at91support@atmel.com\n");
-       lcd_printf ("%s CPU at %s MHz\n",
-               ATMEL_CPU_NAME,
-               strmhz(temp, get_cpu_clk_rate()));
-
-       dram_size = 0;
-       for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++)
-               dram_size += gd->bd->bi_dram[i].size;
-       nand_size = 0;
-       for (i = 0; i < CONFIG_SYS_MAX_NAND_DEVICE; i++)
-               nand_size += get_nand_dev_by_index(i)->size;
-       lcd_printf ("  %ld MB SDRAM, %ld MB NAND\n",
-               dram_size >> 20,
-               nand_size >> 20 );
-}
-#endif /* CONFIG_LCD_INFO */
 #endif
 
 #ifdef CONFIG_DEBUG_UART_BOARD_INIT
index 86b4050c4c1712351ae4df29aa3643a9c7e1f31d..7c15a76587da71ac791ff27c586acb4ca9c46434 100644 (file)
@@ -134,51 +134,6 @@ static void at91sam9263ek_lcd_hw_init(void)
        gd->fb_base = ATMEL_BASE_SRAM0;
 }
 
-#ifdef CONFIG_LCD_INFO
-#include <nand.h>
-#include <version.h>
-
-#ifdef CONFIG_MTD_NOR_FLASH
-#include <flash.h>
-#endif
-
-void lcd_show_board_info(void)
-{
-       ulong dram_size, nand_size;
-#ifdef CONFIG_MTD_NOR_FLASH
-       ulong flash_size;
-#endif
-       int i;
-       char temp[32];
-
-       lcd_printf ("%s\n", U_BOOT_VERSION);
-       lcd_printf ("(C) 2008 ATMEL Corp\n");
-       lcd_printf ("at91support@atmel.com\n");
-       lcd_printf ("%s CPU at %s MHz\n",
-               ATMEL_CPU_NAME,
-               strmhz(temp, get_cpu_clk_rate()));
-
-       dram_size = 0;
-       for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++)
-               dram_size += gd->bd->bi_dram[i].size;
-       nand_size = 0;
-       for (i = 0; i < CONFIG_SYS_MAX_NAND_DEVICE; i++)
-               nand_size += get_nand_dev_by_index(i)->size;
-#ifdef CONFIG_MTD_NOR_FLASH
-       flash_size = 0;
-       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++)
-               flash_size += flash_info[i].size;
-#endif
-       lcd_printf ("  %ld MB SDRAM, %ld MB NAND",
-               dram_size >> 20,
-               nand_size >> 20 );
-#ifdef CONFIG_MTD_NOR_FLASH
-       lcd_printf (",\n  %ld MB NOR",
-               flash_size >> 20);
-#endif
-       lcd_puts ("\n");
-}
-#endif /* CONFIG_LCD_INFO */
 #endif
 
 #ifdef CONFIG_DEBUG_UART_BOARD_INIT
index 347197a6067d9cbc6f03f5429d065874258650f3..3ab9fb321a778a3ab58094f7cd017b076dc7a3a4 100644 (file)
@@ -218,34 +218,6 @@ static void at91sam9m10g45ek_lcd_hw_init(void)
        gd->fb_base = 0x73E00000;
 }
 
-#ifdef CONFIG_LCD_INFO
-#include <nand.h>
-#include <version.h>
-
-void lcd_show_board_info(void)
-{
-       ulong dram_size, nand_size;
-       int i;
-       char temp[32];
-
-       lcd_printf ("%s\n", U_BOOT_VERSION);
-       lcd_printf ("(C) 2008 ATMEL Corp\n");
-       lcd_printf ("at91support@atmel.com\n");
-       lcd_printf ("%s CPU at %s MHz\n",
-               ATMEL_CPU_NAME,
-               strmhz(temp, get_cpu_clk_rate()));
-
-       dram_size = 0;
-       for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++)
-               dram_size += gd->bd->bi_dram[i].size;
-       nand_size = 0;
-       for (i = 0; i < CONFIG_SYS_MAX_NAND_DEVICE; i++)
-               nand_size += get_nand_dev_by_index(i)->size;
-       lcd_printf ("  %ld MB SDRAM, %ld MB NAND\n",
-               dram_size >> 20,
-               nand_size >> 20 );
-}
-#endif /* CONFIG_LCD_INFO */
 #endif
 
 #ifdef CONFIG_DEBUG_UART_BOARD_INIT
index a337db4efc6872f2d09d288a3ff85080fc0c161e..5825ef85871deaa7e8e3aa2ffadfa2d656aa16ac 100644 (file)
 #include <atmel_hlcdc.h>
 #include <netdev.h>
 
-#ifdef CONFIG_LCD_INFO
-#include <nand.h>
-#include <version.h>
-#endif
-
 DECLARE_GLOBAL_DATA_PTR;
 
 /* ------------------------------------------------------------------------- */
@@ -108,31 +103,6 @@ void lcd_disable(void)
        at91_set_pio_output(AT91_PIO_PORTC, 25, 1);     /* power down */
 }
 
-#ifdef CONFIG_LCD_INFO
-void lcd_show_board_info(void)
-{
-       ulong dram_size, nand_size;
-       int i;
-       char temp[32];
-
-       lcd_printf("%s\n", U_BOOT_VERSION);
-       lcd_printf("ATMEL Corp\n");
-       lcd_printf("at91@atmel.com\n");
-       lcd_printf("%s CPU at %s MHz\n",
-               ATMEL_CPU_NAME,
-               strmhz(temp, get_cpu_clk_rate()));
-
-       dram_size = 0;
-       for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++)
-               dram_size += gd->bd->bi_dram[i].size;
-       nand_size = 0;
-       for (i = 0; i < CONFIG_SYS_MAX_NAND_DEVICE; i++)
-               nand_size += get_nand_dev_by_index(i)->size;
-       lcd_printf("  %ld MB SDRAM, %ld MB NAND\n",
-               dram_size >> 20,
-               nand_size >> 20);
-}
-#endif /* CONFIG_LCD_INFO */
 #endif /* CONFIG_LCD */
 
 #ifdef CONFIG_USB_ATMEL
index af59620d0c02f306d414ae8765e3a2281fd55ee8..45dfaa5f3ecdfa7dbda6f0c3d34521ff4463f068 100644 (file)
@@ -129,34 +129,6 @@ static void at91sam9rlek_lcd_hw_init(void)
        at91_periph_clk_enable(ATMEL_ID_LCDC);
 }
 
-#ifdef CONFIG_LCD_INFO
-#include <nand.h>
-#include <version.h>
-
-void lcd_show_board_info(void)
-{
-       ulong dram_size, nand_size;
-       int i;
-       char temp[32];
-
-       lcd_printf ("%s\n", U_BOOT_VERSION);
-       lcd_printf ("(C) 2008 ATMEL Corp\n");
-       lcd_printf ("at91support@atmel.com\n");
-       lcd_printf ("%s CPU at %s MHz\n",
-               ATMEL_CPU_NAME,
-               strmhz(temp, get_cpu_clk_rate()));
-
-       dram_size = 0;
-       for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++)
-               dram_size += gd->bd->bi_dram[i].size;
-       nand_size = 0;
-       for (i = 0; i < CONFIG_SYS_MAX_NAND_DEVICE; i++)
-               nand_size += get_nand_dev_by_index(i)->size;
-       lcd_printf ("  %ld MB SDRAM, %ld MB NAND\n",
-               dram_size >> 20,
-               nand_size >> 20 );
-}
-#endif /* CONFIG_LCD_INFO */
 #endif
 
 #ifdef CONFIG_DEBUG_UART_BOARD_INIT
index 53ff8dd7444d8f21bcd63924e781313ac402b7d4..36c97df5ff5d6745cfbd416041e4f81be1b93afb 100644 (file)
@@ -524,11 +524,6 @@ static void lcd_logo(void)
 {
        lcd_logo_plot(0, 0);
 
-#ifdef CONFIG_LCD_INFO
-       lcd_set_col(LCD_INFO_X / VIDEO_FONT_WIDTH);
-       lcd_set_row(LCD_INFO_Y / VIDEO_FONT_HEIGHT);
-       lcd_show_board_info();
-#endif /* CONFIG_LCD_INFO */
 }
 
 #ifdef CONFIG_SPLASHIMAGE_GUARD
index 0e9cb5d036982ef7936c06e74e96e6d4b29e0492..ddb8173693f1678c1fb76b3df67dcc5db9b6229a 100644 (file)
@@ -68,6 +68,5 @@ CONFIG_DM_VIDEO=y
 CONFIG_ATMEL_LCD=y
 CONFIG_ATMEL_LCD_BGR555=y
 CONFIG_LCD=y
-CONFIG_LCD_INFO=y
 CONFIG_LCD_LOGO=y
 CONFIG_REGEX=y
index 2a16c833aec18f7447745a05d30d87007069e3d2..9515c4c04981f25ad2e94ed95550eb1abdacf7a9 100644 (file)
@@ -71,6 +71,5 @@ CONFIG_DM_VIDEO=y
 CONFIG_ATMEL_LCD=y
 CONFIG_ATMEL_LCD_BGR555=y
 CONFIG_LCD=y
-CONFIG_LCD_INFO=y
 CONFIG_LCD_LOGO=y
 CONFIG_JFFS2_NAND=y
index 9083267d0073e2139f0b514595a34d93328a1a6e..7213d9ccc5c1463e43eb291723287612f9fbc605 100644 (file)
@@ -728,10 +728,6 @@ config LCD
          CONFIG option. See the README for details. Drives which have been
          converted to driver model will instead used CONFIG_DM_VIDEO.
 
-config LCD_INFO
-       bool "Show LCD info on-screen"
-       depends on LCD
-
 config LCD_LOGO
        bool "Show a logo on screen"
        depends on LCD
index 751b0032efc7267898893fac949bba229e06236e..b4820037b2ab0aaa155e42aacb8351d41da91706 100644 (file)
@@ -144,14 +144,6 @@ void lcd_sync(void);
 #define LCD_COLOR16    4
 #define LCD_COLOR32    5
 
-#if defined(CONFIG_LCD_LOGO)
-#define LCD_INFO_X             (BMP_LOGO_WIDTH + 4 * VIDEO_FONT_WIDTH)
-#define LCD_INFO_Y             VIDEO_FONT_HEIGHT
-#else
-#define LCD_INFO_X             VIDEO_FONT_WIDTH
-#define LCD_INFO_Y             VIDEO_FONT_HEIGHT
-#endif
-
 /* Default to 8bpp if bit depth not specified */
 #ifndef LCD_BPP
 #define LCD_BPP                        LCD_COLOR8