3
* Kyle Harris, Nexus Technologies, Inc. kharris@nexus-tech.net
6
* Sysgo Real-Time Solutions, GmbH <www.elinos.com>
7
* Marius Groeger <mgroeger@sysgo.de>
10
* BEC Systems <http://bec-systems.com>
11
* Cliff Brake <cliff.brake@gmail.com>
12
* Support for Accelent/Vibren PXA255 IDP
14
* See file CREDITS for list of people who contributed to this
17
* This program is free software; you can redistribute it and/or
18
* modify it under the terms of the GNU General Public License as
19
* published by the Free Software Foundation; either version 2 of
20
* the License, or (at your option) any later version.
22
* This program is distributed in the hope that it will be useful,
23
* but WITHOUT ANY WARRANTY; without even the implied warranty of
24
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
* GNU General Public License for more details.
27
* You should have received a copy of the GNU General Public License
28
* along with this program; if not, write to the Free Software
29
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
37
DECLARE_GLOBAL_DATA_PTR;
40
* Miscelaneous platform dependent initialisations
45
/* memory and cpu-speed are setup before relocation */
46
/* so we do _nothing_ here */
48
/* arch number of Lubbock-Board */
49
gd->bd->bi_arch_number = MACH_TYPE_PXA_IDP;
51
/* adress of boot parameters */
52
gd->bd->bi_boot_params = 0xa0000100;
54
/* turn on serial ports */
55
*(volatile unsigned int *)(PXA_CS5_PHYS + 0x03C0002c) = 0x13;
58
/* a value that works is 60Hz, 77% duty cycle */
64
/* clear reset to AC97 codec */
68
/* enable LCD backlight */
69
/* *(volatile unsigned int *)(PXA_CS5_PHYS + 0x03C00030) = 0x7; */
72
/* lcd_puts("This is a test\nTest #2\n"); */
77
int board_late_init(void)
79
setenv("stdout", "serial");
80
setenv("stderr", "serial");
87
gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
88
gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
89
gd->bd->bi_dram[1].start = PHYS_SDRAM_2;
90
gd->bd->bi_dram[1].size = PHYS_SDRAM_2_SIZE;
91
gd->bd->bi_dram[2].start = PHYS_SDRAM_3;
92
gd->bd->bi_dram[2].size = PHYS_SDRAM_3_SIZE;
93
gd->bd->bi_dram[3].start = PHYS_SDRAM_4;
94
gd->bd->bi_dram[3].size = PHYS_SDRAM_4_SIZE;
100
#ifdef DEBUG_BLINKC_ENABLE
104
/* reset OSCR to 0 */
106
while(OSCR > 0x10000)
109
while(OSCR < 0xd4000)
115
int led_bit = (1<<10);
125
int do_idpcmd(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
127
printf("IDPCMD started\n");
131
U_BOOT_CMD(idpcmd, CONFIG_SYS_MAXARGS, 0, do_idpcmd,
132
"custom IDP command",
133
"no args at this time"
138
#ifdef CONFIG_CMD_NET
139
int board_eth_init(bd_t *bis)
142
#ifdef CONFIG_SMC91111
143
rc = smc91111_initialize(0, CONFIG_SMC91111_BASE);