From 305b90919ea8c17edeb1e7d15ae5ca43f36bddc2 Mon Sep 17 00:00:00 2001 From: Peter Griffin Date: Wed, 20 Apr 2016 17:14:02 +0100 Subject: ARM: hisilicon: hikey: Align memory node with upstream kernel The memory node gets automatically generated by U-Boot in arch_fixup_fdt(), before passing control to the kernel using U-Boots representation of the dram banks. However the upstream kernel uses the memory node to carve-out regions of RAM for various purposes. To make this work without changing arch_fixup_fdt() which will effect many platforms we replicate the upstream memory node layout using the dram banks. Signed-off-by: Peter Griffin Reviewed-by: Tom Rini --- include/configs/hikey.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/configs/hikey.h') diff --git a/include/configs/hikey.h b/include/configs/hikey.h index 114a6d1512..83d9e107fe 100644 --- a/include/configs/hikey.h +++ b/include/configs/hikey.h @@ -33,7 +33,7 @@ /* CONFIG_SYS_TEXT_BASE needs to align with where ATF loads bl33.bin */ #define CONFIG_SYS_TEXT_BASE 0x35000000 -#define CONFIG_NR_DRAM_BANKS 1 +#define CONFIG_NR_DRAM_BANKS 6 #define PHYS_SDRAM_1 0x00000000 /* 1008 MB (the last 16Mb are secured for TrustZone by ATF*/ -- cgit v1.2.3