]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/cpu/armv7/uniphier/cmd_pinmon.c
Exynos: Fix L2 cache timings on Exynos5420 and Exynos5800
[karo-tx-uboot.git] / arch / arm / cpu / armv7 / uniphier / cmd_pinmon.c
1 /*
2  * Copyright (C) 2014 Panasonic Corporation
3  *   Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7
8 #include <common.h>
9 #include <asm/arch/boot-device.h>
10 #include <asm/arch/sbc-regs.h>
11
12 static int do_pinmon(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
13 {
14         int mode_sel, i;
15
16         printf("Boot Swap: %s\n\n", boot_is_swapped() ? "ON" : "OFF");
17
18         mode_sel = get_boot_mode_sel();
19
20         puts("Boot Mode Pin:\n");
21
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);
25
26         return 0;
27 }
28
29 U_BOOT_CMD(
30         pinmon, 1,      1,      do_pinmon,
31         "pin monitor",
32         ""
33 );