From e8f2e8b73c6781a380c4246028e177408e9a08ae Mon Sep 17 00:00:00 2001 From: "keith.zhao" Date: Thu, 16 Feb 2023 03:50:35 -0800 Subject: board:riscv:jh7110: modify config for starfive JH7110 board add board_late_init to init display memory config the bitmap picture Signed-off-by:keith.zhao --- board/starfive/evb/starfive_evb.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'board') diff --git a/board/starfive/evb/starfive_evb.c b/board/starfive/evb/starfive_evb.c index 8a30a24de0..b3d3a1de9b 100644 --- a/board/starfive/evb/starfive_evb.c +++ b/board/starfive/evb/starfive_evb.c @@ -16,6 +16,8 @@ #include #include #include +#include +#include enum chip_type_t { CHIP_A = 0, @@ -263,3 +265,21 @@ err: } #endif +int board_late_init(void) +{ + struct udevice *dev; + int ret; + + ret = uclass_get_device(UCLASS_VIDEO, 0, &dev); + if (ret) + return ret; + + ret = video_bmp_display(dev, (ulong)&bmp_logo_bitmap[0], 0, 0, false); + if (ret) + goto err; + +err: + return 0; + +} + -- cgit v1.2.3