~ubuntu-branches/ubuntu/maverick/u-boot-omap3/maverick

« back to all changes in this revision

Viewing changes to board/ml2/ml2.c

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2010-03-22 15:06:23 UTC
  • Revision ID: james.westby@ubuntu.com-20100322150623-i21g8rgiyl5dohag
Tags: upstream-2010.3git20100315
ImportĀ upstreamĀ versionĀ 2010.3git20100315

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
int board_early_init_f (void)
 
26
{
 
27
        return 0;
 
28
}
 
29
 
 
30
 
 
31
int checkboard (void)
 
32
{
 
33
        char *s = getenv ("serial#");
 
34
        char *e;
 
35
 
 
36
        if (!s || strncmp (s, "ML2", 9)) {
 
37
                printf ("### No HW ID - assuming ML2");
 
38
        } else {
 
39
                for (e = s; *e; ++e) {
 
40
                        if (*e == ' ')
 
41
                                break;
 
42
                }
 
43
 
 
44
                for (; s < e; ++s) {
 
45
                        putc (*s);
 
46
                }
 
47
        }
 
48
 
 
49
 
 
50
        putc ('\n');
 
51
 
 
52
        return (0);
 
53
}
 
54
 
 
55
 
 
56
phys_size_t initdram (int board_type)
 
57
{
 
58
        return 32 * 1024 * 1024;
 
59
}
 
60
 
 
61
int testdram (void)
 
62
{
 
63
        printf ("test: xxx MB - ok\n");
 
64
 
 
65
        return (0);
 
66
}