diff options
author | keith.zhao <keith.zhao@starfivetech.com> | 2023-02-16 14:50:35 +0300 |
---|---|---|
committer | keith.zhao <keith.zhao@starfivetech.com> | 2023-02-17 09:14:52 +0300 |
commit | e8f2e8b73c6781a380c4246028e177408e9a08ae (patch) | |
tree | 042c59859c083eb17499693c59205baae9758a9f /board/starfive/evb/starfive_evb.c | |
parent | b67f069c7f90e3f86e6e932afeeab270be8c2310 (diff) | |
download | u-boot-e8f2e8b73c6781a380c4246028e177408e9a08ae.tar.xz |
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<keith.zhao@statfivetech.com>
Diffstat (limited to 'board/starfive/evb/starfive_evb.c')
-rw-r--r-- | board/starfive/evb/starfive_evb.c | 20 |
1 files changed, 20 insertions, 0 deletions
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 <misc.h> #include <linux/bitops.h> #include <asm/arch/gpio.h> +#include <bmp_logo.h> +#include <video.h> 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; + +} + |