Skip to contentSkip to conversation

sunxi: Properly announce BOOT_DEVICE_BOARD as "FEL"

PATCH In review Bernhard Nortmann 2 participants 2 messages Apr 3, 2016 – May 15, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sunxi: Properly announce BOOT_DEVICE_BOARD as "FEL"

This addresses a cosmetic issue when booting a sunxi device over USB (FEL mode), where the SPL currently would just print "Trying to boot from ". The patch fixes that to properly read "Trying to boot from FEL".

---

 arch/arm/mach-sunxi/board.c | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm/mach-sunxi/board.c +9 -0
index 20149da..bd15b9b 100644
@@ -247,6 +247,15 @@ u32 spl_boot_device(void)
 	return -1;		/* Never reached */
 }
 
+/*
+ * Properly announce BOOT_DEVICE_BOARD as "FEL".
+ * Overrides weak function from common/spl/spl.c
+ */
+void spl_board_announce_boot_device(void)
+{
+	printf("FEL");
+}
+
 /* No confirmation data available in SPL yet. Hardcode bootmode */
 u32 spl_boot_mode(void)
 {
Signature · 1 line
2.4.10
#1 lore raw

Hi,

Quoted 6 lines · Bernhard Nortmann

This addresses a cosmetic issue when booting a sunxi device over USB (FEL mode), where the SPL currently would just print "Trying to boot from ". The patch fixes that to properly read "Trying to boot from FEL".

Thanks, looks good to me applied to:

http://git.denx.de/?p=u-boot/u-boot-sunxi.git;a=shortlog;h=refs/heads/next

This will be part of my first pull-req for u-boot v2016.07.

Regards,

Hans

Quoted 26 lines

---

 arch/arm/mach-sunxi/board.c | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm/mach-sunxi/board.c +9 -0
index 20149da..bd15b9b 100644
@@ -247,6 +247,15 @@ u32 spl_boot_device(void)
 	return -1;		/* Never reached */
 }
 
+/*
+ * Properly announce BOOT_DEVICE_BOARD as "FEL".
+ * Overrides weak function from common/spl/spl.c
+ */
+void spl_board_announce_boot_device(void)
+{
+	printf("FEL");
+}
+
 /* No confirmation data available in SPL yet. Hardcode bootmode */
 u32 spl_boot_mode(void)
 {