sunxi: Properly announce BOOT_DEVICE_BOARD as "FEL"
authorBernhard Nortmann <[email protected]>
Sun, 3 Apr 2016 11:58:00 +0000 (13:58 +0200)
committerHans de Goede <[email protected]>
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 <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
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)
 {