]> git.ipfire.org Git - people/ms/u-boot.git/blame - board/avnet/fx12mm/fx12mm.c
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / board / avnet / fx12mm / fx12mm.c
CommitLineData
5deb8022
GS
1/*
2 * (C) Copyright 2008
3 *
4 * Author: Xilinx Inc.
5 *
6 * Modified by:
7 * Georg Schardt <schardt@team-ctech.de>
8 *
1a459660 9 * SPDX-License-Identifier: GPL-2.0+
5deb8022
GS
10 */
11
12#include <config.h>
13#include <common.h>
14#include <asm/processor.h>
15
16int checkboard(void)
17{
f0c0b3a9
WD
18 char buf[64];
19 int i;
20 int l = getenv_f("serial#", buf, sizeof(buf));
5deb8022 21
f0c0b3a9 22 if (l < 0) {
5deb8022
GS
23 printf("Avnet Virtex4 FX12 with no serial #");
24 } else {
f0c0b3a9
WD
25 printf("Avnet Virtex4 FX12 Minimodul # ");
26 for (i = 0; i < l; ++i) {
27 if (buf[i] == ' ')
5deb8022 28 break;
f0c0b3a9 29 putc(buf[i]);
5deb8022 30 }
5deb8022
GS
31 }
32 putc('\n');
33 return 0;
34}