]>
Commit | Line | Data |
---|---|---|
281e00a3 WD |
1 | /* |
2 | * Copyright (C) 2004 Sascha Hauer, Synertronixx GmbH | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or | |
5 | * modify it under the terms of the GNU General Public License as | |
6 | * published by the Free Software Foundation; either version 2 of | |
7 | * the License, or (at your option) any later version. | |
8 | * | |
9 | * This program is distributed in the hope that it will be useful, | |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | * GNU General Public License for more details. | |
13 | * | |
14 | * You should have received a copy of the GNU General Public License | |
15 | * along with this program; if not, write to the Free Software | |
16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, | |
17 | * MA 02111-1307 USA | |
18 | * | |
19 | */ | |
20 | ||
21 | #include <common.h> | |
22 | ||
d87080b7 WD |
23 | DECLARE_GLOBAL_DATA_PTR; |
24 | ||
281e00a3 WD |
25 | #ifdef CONFIG_SHOW_BOOT_PROGRESS |
26 | # define SHOW_BOOT_PROGRESS(arg) show_boot_progress(arg) | |
27 | #else | |
28 | # define SHOW_BOOT_PROGRESS(arg) | |
29 | #endif | |
30 | ||
d87080b7 WD |
31 | int board_init (void) |
32 | { | |
33 | gd->bd->bi_arch_number = MACH_TYPE_SCB9328; | |
34 | gd->bd->bi_boot_params = 0x08000100; | |
281e00a3 | 35 | |
d87080b7 | 36 | return 0; |
281e00a3 WD |
37 | } |
38 | ||
d87080b7 WD |
39 | int dram_init (void) |
40 | { | |
281e00a3 | 41 | #if ( CONFIG_NR_DRAM_BANKS > 0 ) |
d87080b7 WD |
42 | gd->bd->bi_dram[0].start = SCB9328_SDRAM_1; |
43 | gd->bd->bi_dram[0].size = SCB9328_SDRAM_1_SIZE; | |
281e00a3 WD |
44 | #endif |
45 | #if ( CONFIG_NR_DRAM_BANKS > 1 ) | |
d87080b7 WD |
46 | gd->bd->bi_dram[1].start = SCB9328_SDRAM_2; |
47 | gd->bd->bi_dram[1].size = SCB9328_SDRAM_2_SIZE; | |
281e00a3 WD |
48 | #endif |
49 | #if ( CONFIG_NR_DRAM_BANKS > 2 ) | |
d87080b7 WD |
50 | gd->bd->bi_dram[2].start = SCB9328_SDRAM_3; |
51 | gd->bd->bi_dram[2].size = SCB9328_SDRAM_3_SIZE; | |
281e00a3 WD |
52 | #endif |
53 | #if ( CONFIG_NR_DRAM_BANKS > 3 ) | |
d87080b7 WD |
54 | gd->bd->bi_dram[3].start = SCB9328_SDRAM_4; |
55 | gd->bd->bi_dram[3].size = SCB9328_SDRAM_4_SIZE; | |
281e00a3 | 56 | #endif |
d87080b7 | 57 | return 0; |
281e00a3 WD |
58 | } |
59 | ||
60 | /** | |
61 | * show_boot_progress: - indicate state of the boot process | |
62 | * | |
63 | * @param status: Status number - see README for details. | |
64 | * | |
65 | * The CSB226 does only have 3 LEDs, so we switch them on at the most | |
66 | * important states (1, 5, 15). | |
67 | */ | |
68 | ||
69 | void show_boot_progress (int status) | |
70 | { | |
71 | return; | |
72 | } |