diff options
Diffstat (limited to 'board/ti/am62x')
-rw-r--r-- | board/ti/am62x/evm.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/board/ti/am62x/evm.c b/board/ti/am62x/evm.c index 6a5a7804b1f..9146361b3aa 100644 --- a/board/ti/am62x/evm.c +++ b/board/ti/am62x/evm.c @@ -15,6 +15,7 @@ #include <splash.h> #include <cpu_func.h> #include <k3-ddrss.h> +#include <fdt_simplefb.h> #include <fdt_support.h> #include <asm/io.h> #include <asm/arch/hardware.h> @@ -400,3 +401,23 @@ int board_late_init(void) return 0; } #endif + +#if defined(CONFIG_OF_BOARD_SETUP) +int ft_board_setup(void *blob, struct bd_info *bd) +{ + int ret = -1; + + if (IS_ENABLED(CONFIG_VIDEO)) { + if (IS_ENABLED(CONFIG_FDT_SIMPLEFB)) + ret = fdt_simplefb_enable_and_mem_rsv(blob); + + /* If simplefb is not enabled and video is active, then at least reserve + * the framebuffer region to preserve the splash screen while OS is booting + */ + if (ret && video_is_active()) + fdt_add_fb_mem_rsv(blob); + } + + return 0; +} +#endif |