summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkeith.zhao <keith.zhao@starfivetech.com>2023-02-16 14:50:35 +0300
committerkeith.zhao <keith.zhao@starfivetech.com>2023-02-17 09:14:52 +0300
commite8f2e8b73c6781a380c4246028e177408e9a08ae (patch)
tree042c59859c083eb17499693c59205baae9758a9f
parentb67f069c7f90e3f86e6e932afeeab270be8c2310 (diff)
downloadu-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>
-rw-r--r--board/starfive/evb/starfive_evb.c20
-rw-r--r--include/configs/starfive-evb.h2
-rw-r--r--tools/Makefile2
3 files changed, 23 insertions, 1 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;
+
+}
+
diff --git a/include/configs/starfive-evb.h b/include/configs/starfive-evb.h
index 8c01a0f909..2900189356 100644
--- a/include/configs/starfive-evb.h
+++ b/include/configs/starfive-evb.h
@@ -158,5 +158,7 @@
#define memcpy_fromio(a, c, l) memcpy((a), (c), (l))
#define memcpy_toio(c, a, l) memcpy((c), (a), (l))
+#define CONFIG_VIDEO_BMP_LOGO
+#define CONFIG_VIDEO_LOGO
#endif /* _STARFIVE_EVB_H */
diff --git a/tools/Makefile b/tools/Makefile
index 4a86321f64..5cbab27ee3 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -270,7 +270,7 @@ LOGO-$(CONFIG_VIDEO_LOGO) += $(LOGO_DATA_H)
# Generic logo
ifeq ($(LOGO_BMP),)
-LOGO_BMP= $(srctree)/$(src)/logos/denx.bmp
+LOGO_BMP= $(srctree)/$(src)/logos/atmel.bmp
# Use board logo and fallback to vendor
ifneq ($(wildcard $(srctree)/$(src)/logos/$(BOARD).bmp),)