2 * Copyright (C) 2014 Panasonic Corporation
3 * Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
5 * SPDX-License-Identifier: GPL-2.0+
9 #include <asm/arch/boot-device.h>
10 #include <asm/arch/sbc-regs.h>
12 static int do_pinmon(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
16 printf("Boot Swap: %s\n\n", boot_is_swapped() ? "ON" : "OFF");
18 mode_sel = get_boot_mode_sel();
20 puts("Boot Mode Pin:\n");
22 for (i = 0; boot_device_table[i].info; i++)
23 printf(" %c %02x %s\n", i == mode_sel ? '*' : ' ', i,
24 boot_device_table[i].info);
30 pinmon, 1, 1, do_pinmon,