]> git.ipfire.org Git - thirdparty/u-boot.git/blame - board/wepep250/wepep250.c
* Patch by Gleb Natapov, 19 Sep 2003:
[thirdparty/u-boot.git] / board / wepep250 / wepep250.c
CommitLineData
3e38691e
WD
1/*
2 * Copyright (C) 2003 ETC s.r.o.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
17 * MA 02111-1307 USA
18 *
19 * Written by Peter Figuli <peposh@etc.sk>, 2003.
20 *
21 */
22
23#include <common.h>
24#include <asm/arch/pxa-regs.h>
25
26int board_init( void ){
27 DECLARE_GLOBAL_DATA_PTR;
28
8bde7f77 29 gd->bd->bi_arch_number = 288;
3e38691e
WD
30 gd->bd->bi_boot_params = 0xa0000000;
31/*
32 * Setup GPIO stuff to get serial working
33 */
34#if defined( CONFIG_FFUART )
35 GPDR1 = 0x80;
36 GAFR1_L = 0x8010;
37#elif defined( CONFIG_BTUART )
38 GPDR1 = 0x800;
39 GAFR1_L = 0x900000;
40#endif
41 PSSR = 0x20;
42
3e38691e
WD
43 return 0;
44}
45
46int dram_init( void ){
47 DECLARE_GLOBAL_DATA_PTR;
48
49#if ( CONFIG_NR_DRAM_BANKS > 0 )
50 gd->bd->bi_dram[0].start = WEP_SDRAM_1;
51 gd->bd->bi_dram[0].size = WEP_SDRAM_1_SIZE;
52#endif
8bde7f77 53#if ( CONFIG_NR_DRAM_BANKS > 1 )
3e38691e
WD
54 gd->bd->bi_dram[1].start = WEP_SDRAM_2;
55 gd->bd->bi_dram[1].size = WEP_SDRAM_2_SIZE;
56#endif
8bde7f77 57#if ( CONFIG_NR_DRAM_BANKS > 2 )
3e38691e
WD
58 gd->bd->bi_dram[2].start = WEP_SDRAM_3;
59 gd->bd->bi_dram[2].size = WEP_SDRAM_3_SIZE;
60#endif
61#if ( CONFIG_NR_DRAM_BANKS > 3 )
62 gd->bd->bi_dram[3].start = WEP_SDRAM_4;
63 gd->bd->bi_dram[3].size = WEP_SDRAM_4_SIZE;
64#endif
8bde7f77 65
3e38691e
WD
66 return 0;
67}