]> git.sur5r.net Git - u-boot/blob - arch/arm/mach-uniphier/boot-mode/cmd_pinmon.c
ARM64: zynqmp: Use 64bit size cell format for memory node
[u-boot] / arch / arm / mach-uniphier / boot-mode / cmd_pinmon.c
1 /*
2  * Copyright (C) 2014-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6
7 #include <common.h>
8
9 #include "../sbc/sbc-regs.h"
10 #include "../soc-info.h"
11 #include "boot-device.h"
12
13 static int do_pinmon(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
14 {
15         printf("Boot Swap: %s\n\n", boot_is_swapped() ? "ON" : "OFF");
16
17         switch (uniphier_get_soc_type()) {
18 #if defined(CONFIG_ARCH_UNIPHIER_SLD3)
19         case SOC_UNIPHIER_SLD3:
20                 uniphier_sld3_boot_mode_show();
21                 break;
22 #endif
23 #if defined(CONFIG_ARCH_UNIPHIER_LD4) || defined(CONFIG_ARCH_UNIPHIER_PRO4) || \
24         defined(CONFIG_ARCH_UNIPHIER_SLD8)
25         case SOC_UNIPHIER_LD4:
26         case SOC_UNIPHIER_PRO4:
27         case SOC_UNIPHIER_SLD8:
28                 uniphier_ld4_boot_mode_show();
29                 break;
30 #endif
31 #if defined(CONFIG_ARCH_UNIPHIER_PRO5)
32         case SOC_UNIPHIER_PRO5:
33                 uniphier_pro5_boot_mode_show();
34                 break;
35 #endif
36 #if defined(CONFIG_ARCH_UNIPHIER_PXS2) || defined(CONFIG_ARCH_UNIPHIER_LD6B)
37         case SOC_UNIPHIER_PXS2:
38         case SOC_UNIPHIER_LD6B:
39                 uniphier_pxs2_boot_mode_show();
40                 break;
41 #endif
42         default:
43                 break;
44         }
45
46         return 0;
47 }
48
49 U_BOOT_CMD(
50         pinmon, 1,      1,      do_pinmon,
51         "pin monitor",
52         ""
53 );