]> git.sur5r.net Git - u-boot/commitdiff
rockchip: use puts instead of printf when back to bootrom
authorAndy Yan <andy.yan@rock-chips.com>
Mon, 24 Jul 2017 09:52:01 +0000 (17:52 +0800)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Thu, 27 Jul 2017 12:59:04 +0000 (14:59 +0200)
printf will increase the code size more than 1kb, but platform
like rk3036 has no enough space for it.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
arch/arm/mach-rockchip/bootrom.c

index da36f9269729c02b3721691d982653ea786a0b83..4ca996231015a38cd0a5c05e288d28be73c4b284 100644 (file)
@@ -9,8 +9,8 @@
 
 void back_to_bootrom(void)
 {
-#if defined(CONFIG_SPL_LIBGENERIC_SUPPORT) && !defined(CONFIG_TPL_BUILD)
-       printf("Returning to boot ROM...");
+#if defined(CONFIG_SPL_LIBCOMMON_SUPPORT) && !defined(CONFIG_TPL_BUILD)
+       puts("Returning to boot ROM...");
 #endif
        _back_to_bootrom_s();
 }