sunxi: Update sunxi-common.h to deal with different A1-SRAM base addr on sun9i
authorHans de Goede <hdegoede@redhat.com>
Wed, 20 May 2015 13:27:16 +0000 (15:27 +0200)
committerHans de Goede <hdegoede@redhat.com>
Fri, 29 May 2015 11:46:36 +0000 (13:46 +0200)
commit77fe98870bfef558ae12193ffb9d7cfe1736292b
tree0579ec97af99af04f490d55cafe2b9a6ceae8bb9
parente049fe282622d78fcc8f2ab9fe00cd186a542fa2
sunxi: Update sunxi-common.h to deal with different A1-SRAM base addr on sun9i

The A1 SRAM Base differs between sun9i and the others, update sunxi-common.h
to deal with this, so that we do not set the initial stack pointer to point
to the BROM.

This avoids the need for the weird undocumented register write I previously
took from the allwiner u-boot sources and which needed #ifdef-ery in start.S
as it needed to be done really early on.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
include/configs/sunxi-common.h