A9M2440: Use external GPIO settings to setup the SDRAM
commit8a7f83735549d4edd49f608c922780e03cadc062
authorJuergen Beisert <juergen@kreuzholzen.de>
Tue, 27 Oct 2009 18:57:36 +0000 (27 19:57 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Wed, 28 Oct 2009 08:44:42 +0000 (28 09:44 +0100)
treeefbefa770eeb259cc0d9b7a9835e2bc08b5eb0e0
parent07d6c14898606c1b41ac43213ad5c59f8c120339
A9M2440: Use external GPIO settings to setup the SDRAM

The generic A9M2440 comes in many SDRAM variantes. Two GPIO pins describing
the populated SDRAM devices. This patch adds some code to query the setting
and setup a correct SDRAM configuration out of four possible variants.

Due to the lack of hardware the 16 MiB and 128 MiB case is untested yet.

Due to the 32 MiB configuration we must link the u-boot-v2 always to
address 0x31fc0000. Even for the 64 MiB and 128 MiB configuration.

Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
arch/arm/Kconfig
arch/arm/configs/a9m2440_defconfig
board/a9m2440/a9m2440.c
board/a9m2440/config.h
board/a9m2440/lowlevel_init.S