]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
da8xx: fixup ARM relocation support
authorBen Gardiner <bengardiner@nanometrics.ca>
Mon, 23 Aug 2010 13:08:15 +0000 (09:08 -0400)
committerWolfgang Denk <wd@denx.de>
Sun, 19 Sep 2010 17:29:56 +0000 (19:29 +0200)
commit97003756249bd790910417eb66f0039bbf06a02c
tree48ec9d11d9f9bb67501f5bdfb670a1c1f05c81eb
parenta51dd67a03d5a43c6c9a2964cfd854d332f52860
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>
board/davinci/common/misc.c
include/configs/da850evm.h