]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: ti: am62x: evm: Remove video_setup from spl_board_init
authorDevarsh Thakkar <devarsht@ti.com>
Tue, 5 Dec 2023 15:55:18 +0000 (21:25 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 29 Jan 2024 19:49:17 +0000 (14:49 -0500)
Remove video_setup from evm_init sequence since video memory is getting
called at an earlier place to make sure video memory is reserved at
the end of RAM.

Suggested-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
board/ti/am62x/evm.c

index ad939088402e489502e6fc27a49c21715a2f2c7e..88e02155ee33362dd9452467c343e26d418485a1 100644 (file)
@@ -60,27 +60,9 @@ int dram_init_banksize(void)
 }
 
 #if defined(CONFIG_SPL_BUILD)
-static int video_setup(void)
-{
-       if (CONFIG_IS_ENABLED(VIDEO)) {
-               ulong addr;
-               int ret;
-
-               addr = gd->relocaddr;
-               ret = video_reserve(&addr);
-               if (ret)
-                       return ret;
-               debug("Reserving %luk for video at: %08lx\n",
-                     ((unsigned long)gd->relocaddr - addr) >> 10, addr);
-               gd->relocaddr = addr;
-       }
-
-       return 0;
-}
 
 void spl_board_init(void)
 {
-       video_setup();
        enable_caches();
        if (IS_ENABLED(CONFIG_SPL_SPLASH_SCREEN) && IS_ENABLED(CONFIG_SPL_BMP))
                splash_display();