u-boot/board/davinci
Ben Gardiner 9700375624 da8xx: fixup ARM relocation support
Split the existing dram_init for da8xx when ARM reloc is enabled, like the
changes to arch/arm/cpu/arm926ejs/orion5x/dram.c in
0f234d263b17ccf1b8fd776eb8c15b7cdb27a887 by Heiko Schocher <hs@denx.de>.

Without these changes gd->ram_size is '0' which leads to incorrect relocation
when CONFIG_SYS_ARM_WITHOUT_RELOC is defined and the board does not boot.

We use get_ram_size to dynamically calculate the available RAM because it runs
on different board version with different ram, as suggested by Heiko in private
communication.

Tested on a da850evm with 128M of DDR2 installed; with both
CONFIG_SYS_ARM_WITHOUT_RELOC defined and undefined.

Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
Reviewed-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
CC: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
CC: Heiko Schocher <hs@denx.de>
2010-09-19 19:29:56 +02:00
..
common da8xx: fixup ARM relocation support 2010-09-19 19:29:56 +02:00
da8xxevm da850 evm: Fix definition of 'pinmux' macro 2010-07-15 16:08:38 -04:00
dm355evm TI DaVinci DM355: Fix Compilation warning for DM355 EVM 2009-10-18 16:42:21 -05:00
dm355leopard TI DaVinci: DM355 Leopard: Fix compilation warning 2009-10-24 09:55:24 -05:00
dm365evm TI DaVinci: Adding Copyright for DM365 EVM 2009-10-24 09:55:24 -05:00
dm6467evm TI DaVinci DM646x: Enable NAND on DM6467 EVM 2009-11-27 16:26:17 -06:00
dvevm arm: Move cpu/$CPU to arch/arm/cpu/$CPU 2010-04-13 09:13:24 +02:00
schmoogie arm: Move cpu/$CPU to arch/arm/cpu/$CPU 2010-04-13 09:13:24 +02:00
sffsdr arm: Move cpu/$CPU to arch/arm/cpu/$CPU 2010-04-13 09:13:24 +02:00
sonata arm: Move cpu/$CPU to arch/arm/cpu/$CPU 2010-04-13 09:13:24 +02:00