]> git.sur5r.net Git - u-boot/commitdiff
sunxi: Properly announce BOOT_DEVICE_BOARD as "FEL"
authorBernhard Nortmann <bernhard.nortmann@web.de>
Sun, 3 Apr 2016 11:58:00 +0000 (13:58 +0200)
committerHans de Goede <hdegoede@redhat.com>
Wed, 25 May 2016 15:52:39 +0000 (17:52 +0200)
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".

Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
arch/arm/mach-sunxi/board.c

index 20149dabc8e3ff1ef4952b339a0f7cbe128e5770..bd15b9bfb056c217c68b956a5aa173e037b3a8e7 100644 (file)
@@ -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)
 {