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