blob: ff6dbf0ed4e8d583c4963e8a16fdbcecaa03e664 [file] [log] [blame]
Kristoffer Ericson80bf2bb2010-10-15 23:31:43 +02001/*
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 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02008 * SPDX-License-Identifier: GPL-2.0+
Kristoffer Ericson80bf2bb2010-10-15 23:31:43 +02009 */
10
11#include <common.h>
12#include <SA-1100.h>
13
14DECLARE_GLOBAL_DATA_PTR;
15
16/* ------------------------------------------------------------------------- */
17
18int 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
36int 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}