From: Bernhard Nortmann Date: Sun, 3 Apr 2016 11:58:00 +0000 (+0200) Subject: sunxi: Properly announce BOOT_DEVICE_BOARD as "FEL" X-Git-Tag: KARO-TXSD-2017-03-15~1009^2~5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=28d68045cc9f146a8c4aa2c8921eb95330ccc754;p=karo-tx-uboot.git 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". Signed-off-by: Bernhard Nortmann Reviewed-by: Hans de Goede Signed-off-by: Hans de Goede --- diff --git a/arch/arm/mach-sunxi/board.c b/arch/arm/mach-sunxi/board.c index 20149dabc8..bd15b9bfb0 100644 --- a/arch/arm/mach-sunxi/board.c +++ b/arch/arm/mach-sunxi/board.c @@ -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) {