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[])
14 struct boot_device_info *table;
17 mode_sel = get_boot_mode_sel();
19 printf("Boot Swap: %s\n\n", boot_is_swapped() ? "ON" : "OFF");
21 puts("Boot Mode Pin:\n");
23 for (table = boot_device_table; strlen(table->info); table++) {
24 printf(" %c %02x %s\n", n == mode_sel ? '*' : ' ', n,
33 pinmon, 1, 1, do_pinmon,