blob: 4b7eba125e7e0afcc9e09f1db8aa5d9e2baa8aaa [file] [log] [blame]
Wolfgang Denkac7eb8a2005-09-14 23:53:32 +02001/*
2 * (C) Copyright 2005 2N TELEKOMUNIKACE, Ladislav Michl
3 *
4 * See file CREDITS for list of people who contributed to this
5 * project.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20 * MA 02111-1307 USA
21 */
22
23#include <common.h>
24
Wolfgang Denkd87080b2006-03-31 18:32:53 +020025DECLARE_GLOBAL_DATA_PTR;
26
Wolfgang Denkac7eb8a2005-09-14 23:53:32 +020027int board_init(void)
28{
Wolfgang Denkac7eb8a2005-09-14 23:53:32 +020029 /* arch number of NetStar board */
30 /* TODO: use define from asm/mach-types.h */
31 gd->bd->bi_arch_number = 692;
32
33 /* adress of boot parameters */
34 gd->bd->bi_boot_params = 0x10000100;
35
36 return 0;
37}
38
39int dram_init(void)
40{
Wolfgang Denkac7eb8a2005-09-14 23:53:32 +020041 gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
42 gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
43
44 /* Take the Ethernet controller out of reset and wait
45 * for the EEPROM load to complete. */
46 *((volatile unsigned short *) GPIO_DATA_OUTPUT_REG) |= 0x80;
47 udelay(10); /* doesn't work before interrupt_init call */
48 *((volatile unsigned short *) GPIO_DATA_OUTPUT_REG) &= ~0x80;
49 udelay(500);
50
51 return 0;
52}
53
54extern void partition_flash(void);
55
56int misc_init_r(void)
57{
58 return 0;
59}
60
61extern void nand_init(void);
62
63int board_late_init(void)
64{
65 return 0;
66}