2 * Copyright (C) 2014-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
4 * SPDX-License-Identifier: GPL-2.0+
8 #include <mach/boot-device.h>
9 #include <mach/sbc-regs.h>
10 #include <mach/soc_info.h>
12 static int do_pinmon(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
14 printf("Boot Swap: %s\n\n", boot_is_swapped() ? "ON" : "OFF");
16 switch (uniphier_get_soc_type()) {
17 #if defined(CONFIG_ARCH_UNIPHIER_PH1_SLD3)
18 case SOC_UNIPHIER_PH1_SLD3:
19 ph1_sld3_boot_mode_show();
22 #if defined(CONFIG_ARCH_UNIPHIER_PH1_LD4) || \
23 defined(CONFIG_ARCH_UNIPHIER_PH1_PRO4) || \
24 defined(CONFIG_ARCH_UNIPHIER_PH1_SLD8)
25 case SOC_UNIPHIER_PH1_LD4:
26 case SOC_UNIPHIER_PH1_PRO4:
27 case SOC_UNIPHIER_PH1_SLD8:
28 ph1_ld4_boot_mode_show();
31 #if defined(CONFIG_ARCH_UNIPHIER_PH1_PRO5)
32 case SOC_UNIPHIER_PH1_PRO5:
33 ph1_pro5_boot_mode_show();
36 #if defined(CONFIG_ARCH_UNIPHIER_PROXSTREAM2) || \
37 defined(CONFIG_ARCH_UNIPHIER_PH1_LD6B)
38 case SOC_UNIPHIER_PROXSTREAM2:
39 case SOC_UNIPHIER_PH1_LD6B:
40 proxstream2_boot_mode_show();
51 pinmon, 1, 1, do_pinmon,