]>
Commit | Line | Data |
---|---|---|
80bf2bb5 KE |
1 | /* |
2 | * (C) Copyright 2002 | |
3 | * Sysgo Real-Time Solutions, GmbH <www.elinos.com> | |
4 | * Marius Groeger <mgroeger@sysgo.de> | |
5 | * | |
6 | * 2004 (c) MontaVista Software, Inc. | |
7 | * | |
1a459660 | 8 | * SPDX-License-Identifier: GPL-2.0+ |
80bf2bb5 KE |
9 | */ |
10 | ||
11 | #include <common.h> | |
12 | #include <SA-1100.h> | |
13 | ||
14 | DECLARE_GLOBAL_DATA_PTR; | |
15 | ||
16 | /* ------------------------------------------------------------------------- */ | |
17 | ||
18 | int board_init(void) | |
19 | { | |
20 | gd->bd->bi_arch_number = MACH_TYPE_JORNADA720; | |
21 | gd->bd->bi_boot_params = 0xc0000100; | |
22 | ||
23 | ||
24 | /* | |
25 | * Turn on flashing. | |
26 | * Would be nice to have some protection but | |
27 | * that would have to be implemented in the | |
28 | * flash init function, which isnt possible yet. | |
29 | */ | |
30 | PPSR |= (1 << 7); | |
31 | PPDR |= (1 << 7); | |
32 | ||
33 | return 0; | |
34 | } | |
35 | ||
36 | int dram_init(void) | |
37 | { | |
38 | gd->bd->bi_dram[0].start = PHYS_SDRAM_1; | |
39 | gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE; | |
40 | gd->bd->bi_dram[1].start = PHYS_SDRAM_2; | |
41 | gd->bd->bi_dram[1].size = PHYS_SDRAM_2_SIZE; | |
42 | ||
43 | return (0); | |
44 | } |