summaryrefslogtreecommitdiff
path: root/board/sunxi
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2016-03-30 17:53:56 +0200
committerHans de Goede <hdegoede@redhat.com>2016-04-01 09:52:28 +0200
commit3ffe39ed2b66af71c7271d0cef2a248b5bf7dfdb (patch)
tree26c96796326cee755accf9e2424626b9c767bf35 /board/sunxi
parent7adbd1165c600e5e57fc31989148ad578214c6c4 (diff)
downloadu-boot-imx-3ffe39ed2b66af71c7271d0cef2a248b5bf7dfdb.zip
u-boot-imx-3ffe39ed2b66af71c7271d0cef2a248b5bf7dfdb.tar.gz
u-boot-imx-3ffe39ed2b66af71c7271d0cef2a248b5bf7dfdb.tar.bz2
sunxi: Reserve ATF memory space on A64
On the A64 we usually boot with ATF running in EL3. ATF as it is available today resides in the first 16MB of RAM. So we should make sure we reserve that space in our memory maps. Signed-off-by: Alexander Graf <agraf@suse.de> Acked-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'board/sunxi')
-rw-r--r--board/sunxi/board.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c
index ccf4129..3cf3614 100644
--- a/board/sunxi/board.c
+++ b/board/sunxi/board.c
@@ -133,6 +133,15 @@ int dram_init(void)
return 0;
}
+#ifdef CONFIG_MACH_SUN50I
+void dram_init_banksize(void)
+{
+ /* We need to reserve the first 16MB of RAM for ATF */
+ gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE + (16 * 1024 * 1024);
+ gd->bd->bi_dram[0].size = get_effective_memsize() - (16 * 1024 * 1024);
+}
+#endif
+
#if defined(CONFIG_NAND_SUNXI) && defined(CONFIG_SPL_BUILD)
static void nand_pinmux_setup(void)
{