From: Masahiro Yamada Date: Fri, 19 Dec 2014 11:20:54 +0000 (+0900) Subject: ARM: UniPhier: display boot swap pin status by pinmon command X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=7b77c9ab6fa90ada42185bcc64b7d33812fed35d;p=u-boot.git ARM: UniPhier: display boot swap pin status by pinmon command This information would be useful enough. Signed-off-by: Masahiro Yamada --- diff --git a/arch/arm/cpu/armv7/uniphier/cmd_pinmon.c b/arch/arm/cpu/armv7/uniphier/cmd_pinmon.c index eef9f39840..3561b40a33 100644 --- a/arch/arm/cpu/armv7/uniphier/cmd_pinmon.c +++ b/arch/arm/cpu/armv7/uniphier/cmd_pinmon.c @@ -7,6 +7,7 @@ #include #include +#include static int do_pinmon(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { @@ -15,6 +16,8 @@ static int do_pinmon(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) mode_sel = get_boot_mode_sel(); + printf("Boot Swap: %s\n\n", boot_is_swapped() ? "ON" : "OFF"); + puts("Boot Mode Pin:\n"); for (table = boot_device_table; strlen(table->info); table++) {