summaryrefslogtreecommitdiff
path: root/board/vpac270/vpac270.c
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2010-09-28 15:50:49 +0200
committerWolfgang Denk <wd@denx.de>2010-10-19 23:05:02 +0200
commit720a650caa510bf8e941f8da247fc572958f3c3d (patch)
tree7432139e3ab46495a93ec02e5fb20ffc6ed01869 /board/vpac270/vpac270.c
parent2cad92fd674d035a04631b9ab044c030f95e0fec (diff)
downloadu-boot-imx-720a650caa510bf8e941f8da247fc572958f3c3d.zip
u-boot-imx-720a650caa510bf8e941f8da247fc572958f3c3d.tar.gz
u-boot-imx-720a650caa510bf8e941f8da247fc572958f3c3d.tar.bz2
PXA: Fix vpac270 for Reloc
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Diffstat (limited to 'board/vpac270/vpac270.c')
-rw-r--r--board/vpac270/vpac270.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/board/vpac270/vpac270.c b/board/vpac270/vpac270.c
index f91ff97..91d8580 100644
--- a/board/vpac270/vpac270.c
+++ b/board/vpac270/vpac270.c
@@ -32,6 +32,10 @@ DECLARE_GLOBAL_DATA_PTR;
*/
int board_init(void)
{
+ /* We have RAM, disable cache */
+ dcache_disable();
+ icache_disable();
+
/* memory and cpu-speed are setup before relocation */
/* so we do _nothing_ here */
@@ -49,13 +53,11 @@ struct serial_device *default_serial_console(void)
return &serial_ffuart_device;
}
-
+extern void pxa_dram_init(void);
int dram_init(void)
{
+ pxa_dram_init();
gd->ram_size = PHYS_SDRAM_1_SIZE;
-#ifdef CONFIG_256M_U_BOOT
- gd->ram_size += PHYS_SDRAM_2_SIZE;
-#endif
return 0;
}