2 * Copyright (C) 2014-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
4 * SPDX-License-Identifier: GPL-2.0+
9 #include "../sbc/sbc-regs.h"
10 #include "../soc-info.h"
11 #include "boot-device.h"
13 static int do_pinmon(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
15 printf("Boot Swap: %s\n\n", boot_is_swapped() ? "ON" : "OFF");
17 switch (uniphier_get_soc_id()) {
18 #if defined(CONFIG_ARCH_UNIPHIER_SLD3)
19 case UNIPHIER_SLD3_ID:
20 uniphier_sld3_boot_mode_show();
23 #if defined(CONFIG_ARCH_UNIPHIER_LD4) || defined(CONFIG_ARCH_UNIPHIER_PRO4) || \
24 defined(CONFIG_ARCH_UNIPHIER_SLD8)
26 case UNIPHIER_PRO4_ID:
27 case UNIPHIER_SLD8_ID:
28 uniphier_ld4_boot_mode_show();
31 #if defined(CONFIG_ARCH_UNIPHIER_PRO5)
32 case UNIPHIER_PRO5_ID:
33 uniphier_pro5_boot_mode_show();
36 #if defined(CONFIG_ARCH_UNIPHIER_PXS2) || defined(CONFIG_ARCH_UNIPHIER_LD6B)
37 case UNIPHIER_PXS2_ID:
38 case UNIPHIER_LD6B_ID:
39 uniphier_pxs2_boot_mode_show();
42 #if defined(CONFIG_ARCH_UNIPHIER_LD11) || defined(CONFIG_ARCH_UNIPHIER_LD20)
43 case UNIPHIER_LD11_ID:
44 case UNIPHIER_LD20_ID:
45 uniphier_ld20_boot_mode_show();
56 pinmon, 1, 1, do_pinmon,