VisionFive2 U-Boot

StarFive Tech U-Boot for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   15 Branches   51 Tags
author: keith.zhao <keith.zhao@starfivetech.com> 2023-02-16 03:50:35 -0800 committer: keith.zhao <keith.zhao@starfivetech.com> 2023-02-16 22:14:52 -0800 commit: e8f2e8b73c6781a380c4246028e177408e9a08ae parent: b67f069c7f90e3f86e6e932afeeab270be8c2310
Commit Summary:
board:riscv:jh7110: modify config for starfive JH7110 board
Diffstat:
3 files changed, 19 insertions, 1 deletion
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),)