summaryrefslogtreecommitdiff
path: root/board/colibri_pxa270/colibri_pxa270.c
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2010-10-20 20:15:11 +0200
committerMarek Vasut <marek.vasut@gmail.com>2010-10-22 01:37:59 +0200
commitd94bbbeb16d80abfff4bb333efb1251b92bc5c6f (patch)
treeb3866f6a3cb62c8f65af8d5c3f0aa16417c80f44 /board/colibri_pxa270/colibri_pxa270.c
parentcaeb8c0ac2741a57d50de8654b9dc1bdb5001c8e (diff)
downloadu-boot-imx-d94bbbeb16d80abfff4bb333efb1251b92bc5c6f.zip
u-boot-imx-d94bbbeb16d80abfff4bb333efb1251b92bc5c6f.tar.gz
u-boot-imx-d94bbbeb16d80abfff4bb333efb1251b92bc5c6f.tar.bz2
PXA: colibri_pxa270: Fix for reloc
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Diffstat (limited to 'board/colibri_pxa270/colibri_pxa270.c')
-rw-r--r--board/colibri_pxa270/colibri_pxa270.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/board/colibri_pxa270/colibri_pxa270.c b/board/colibri_pxa270/colibri_pxa270.c
index 8aa7067..191fb33 100644
--- a/board/colibri_pxa270/colibri_pxa270.c
+++ b/board/colibri_pxa270/colibri_pxa270.c
@@ -42,8 +42,9 @@ struct serial_device *default_serial_console (void)
int board_init (void)
{
- /* memory and cpu-speed are setup before relocation */
- /* so we do _nothing_ here */
+ /* We have RAM, disable cache */
+ dcache_disable();
+ icache_disable();
/* arch number of vpac270 */
gd->bd->bi_arch_number = MACH_TYPE_COLIBRI;
@@ -54,13 +55,18 @@ int board_init (void)
return 0;
}
-int dram_init (void)
+extern void pxa_dram_init(void);
+int dram_init(void)
{
- gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
+ pxa_dram_init();
+ gd->ram_size = PHYS_SDRAM_1_SIZE;
+ return 0;
+}
+void dram_init_banksize(void)
+{
+ gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
-
- return 0;
}
#ifdef CONFIG_CMD_USB