]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/ml2/ml2.c
Initial revision
[karo-tx-uboot.git] / board / ml2 / ml2.c
1 /*
2  * ml2.c: U-Boot platform support for Xilinx ML2 board
3  *
4  * Copyright 2002 Mind NV
5  *
6  * http://www.mind.be/
7  *
8  * Author : Peter De Schrijver (p2@mind.be)
9  *
10  * Derived from : Other platform support files in this tree
11  *
12  * This software may be used and distributed according to the terms of
13  * the GNU General Public License (GPL) version 2, incorporated herein by
14  * reference. Drivers based on or derived from this code fall under the GPL
15  * and must retain the authorship, copyright and this license notice. This
16  * file is not a complete program and may only be used when the entire
17  * program is licensed under the GPL.
18  *
19  */
20
21 #include <common.h>
22 #include <asm/processor.h>
23
24
25
26 int board_pre_init (void)
27 {
28         return 0;
29 }
30
31
32 int checkboard (void)
33 {
34         unsigned char *s = getenv ("serial#");
35         unsigned char *e;
36
37         if (!s || strncmp (s, "ML2", 9)) {
38                 printf ("### No HW ID - assuming ML2");
39         } else {
40                 for (e = s; *e; ++e) {
41                         if (*e == ' ')
42                                 break;
43                 }
44
45                 for (; s < e; ++s) {
46                         putc (*s);
47                 }
48         }
49
50
51         putc ('\n');
52
53         return (0);
54 }
55
56
57 long int initdram (int board_type)
58 {
59         return 32 * 1024 * 1024;
60 }
61
62 int testdram (void)
63 {
64         printf ("test: xxx MB - ok\n");
65
66         return (0);
67 }