]> git.ipfire.org Git - people/ms/u-boot.git/blame - board/netstar/netstar.c
Code cleanup
[people/ms/u-boot.git] / board / netstar / netstar.c
CommitLineData
ac7eb8a3
WD
1/*
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
d87080b7
WD
25DECLARE_GLOBAL_DATA_PTR;
26
ac7eb8a3
WD
27int board_init(void)
28{
ac7eb8a3 29 /* arch number of NetStar board */
ac7eb8a3
WD
30 gd->bd->bi_arch_number = 692;
31
32 /* adress of boot parameters */
33 gd->bd->bi_boot_params = 0x10000100;
34
35 return 0;
36}
37
38int dram_init(void)
39{
ac7eb8a3
WD
40 gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
41 gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
42
43 /* Take the Ethernet controller out of reset and wait
44 * for the EEPROM load to complete. */
45 *((volatile unsigned short *) GPIO_DATA_OUTPUT_REG) |= 0x80;
46 udelay(10); /* doesn't work before interrupt_init call */
47 *((volatile unsigned short *) GPIO_DATA_OUTPUT_REG) &= ~0x80;
48 udelay(500);
49
50 return 0;
51}
52
ac7eb8a3
WD
53int misc_init_r(void)
54{
55 return 0;
56}
57
ac7eb8a3
WD
58int board_late_init(void)
59{
60 return 0;
61}