]>
git.ipfire.org Git - people/ms/u-boot.git/blob - board/wepep250/wepep250.c
2 * Copyright (C) 2003 ETC s.r.o.
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.
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.
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,
19 * Written by Peter Figuli <peposh@etc.sk>, 2003.
24 #include <asm/arch/pxa-regs.h>
27 DECLARE_GLOBAL_DATA_PTR
;
31 gd
->bd
->bi_arch_number
= MACH_TYPE_WEP_EP250
;
32 gd
->bd
->bi_boot_params
= 0xa0000000;
34 * Setup GPIO stuff to get serial working
36 #if defined( CONFIG_FFUART )
38 writel(0x8010, GAFR1_L
);
39 #elif defined( CONFIG_BTUART )
41 writel(0x900000, GAFR1_L
);
50 #if ( CONFIG_NR_DRAM_BANKS > 0 )
51 gd
->bd
->bi_dram
[0].start
= WEP_SDRAM_1
;
52 gd
->bd
->bi_dram
[0].size
= WEP_SDRAM_1_SIZE
;
54 #if ( CONFIG_NR_DRAM_BANKS > 1 )
55 gd
->bd
->bi_dram
[1].start
= WEP_SDRAM_2
;
56 gd
->bd
->bi_dram
[1].size
= WEP_SDRAM_2_SIZE
;
58 #if ( CONFIG_NR_DRAM_BANKS > 2 )
59 gd
->bd
->bi_dram
[2].start
= WEP_SDRAM_3
;
60 gd
->bd
->bi_dram
[2].size
= WEP_SDRAM_3_SIZE
;
62 #if ( CONFIG_NR_DRAM_BANKS > 3 )
63 gd
->bd
->bi_dram
[3].start
= WEP_SDRAM_4
;
64 gd
->bd
->bi_dram
[3].size
= WEP_SDRAM_4_SIZE
;