mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-11 22:03:15 +00:00
83d290c56f
When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com>
65 lines
1.3 KiB
C
65 lines
1.3 KiB
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright 2009 Extreme Engineering Solutions, Inc.
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include "fsl_8xxx_misc.h"
|
|
|
|
int checkboard(void)
|
|
{
|
|
char name[] = CONFIG_SYS_BOARD_NAME;
|
|
char buf[64];
|
|
char *s;
|
|
int i;
|
|
|
|
#ifdef CONFIG_SYS_FORM_CUSTOM
|
|
s = "Custom";
|
|
#elif CONFIG_SYS_FORM_6U_CPCI
|
|
s = "6U CompactPCI";
|
|
#elif CONFIG_SYS_FORM_ATCA_PMC
|
|
s = "ATCA w/PMC";
|
|
#elif CONFIG_SYS_FORM_ATCA_AMC
|
|
s = "ATCA w/AMC";
|
|
#elif CONFIG_SYS_FORM_VME
|
|
s = "VME";
|
|
#elif CONFIG_SYS_FORM_6U_VPX
|
|
s = "6U VPX";
|
|
#elif CONFIG_SYS_FORM_PMC
|
|
s = "PMC";
|
|
#elif CONFIG_SYS_FORM_PCI
|
|
s = "PCI";
|
|
#elif CONFIG_SYS_FORM_3U_CPCI
|
|
s = "3U CompactPCI";
|
|
#elif CONFIG_SYS_FORM_AMC
|
|
s = "AdvancedMC";
|
|
#elif CONFIG_SYS_FORM_XMC
|
|
s = "XMC";
|
|
#elif CONFIG_SYS_FORM_PMC_XMC
|
|
s = "PMC/XMC";
|
|
#elif CONFIG_SYS_FORM_PCI_EXPRESS
|
|
s = "PCI Express";
|
|
#elif CONFIG_SYS_FORM_3U_VPX
|
|
s = "3U VPX";
|
|
#else
|
|
#error "Form factor not defined"
|
|
#endif
|
|
|
|
name[strlen(name) - 1] += get_board_derivative();
|
|
printf("Board: X-ES %s %s SBC\n", name, s);
|
|
|
|
/* Display board specific information */
|
|
puts(" ");
|
|
i = env_get_f("board_rev", buf, sizeof(buf));
|
|
if (i > 0)
|
|
printf("Rev %s, ", buf);
|
|
i = env_get_f("serial#", buf, sizeof(buf));
|
|
if (i > 0)
|
|
printf("Serial# %s, ", buf);
|
|
i = env_get_f("board_cfg", buf, sizeof(buf));
|
|
if (i > 0)
|
|
printf("Cfg %s", buf);
|
|
puts("\n");
|
|
|
|
return 0;
|
|
}
|