From: Przemyslaw Marczak
Date: Tue, 17 Feb 2015 13:50:26 +0000 (+0100)
Subject: Odroid-XU3: enable the last dram bank and reserve 22MiB
X-Git-Tag: v2015.04-rc4~125^2~1
X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=973ae1e0858d3a1e34f9b33cedab0a344a83c7c8;p=u-boot
Odroid-XU3: enable the last dram bank and reserve 22MiB
This commit enables the last DRAM bank and reserves
the last 22 MiB of it, for the secure firmware.
Signed-off-by: Przemyslaw Marczak
Cc: Akshay Saraswat
Cc: Hyungwon Hwang
Cc: Minkyu Kang
Signed-off-by: Minkyu Kang
---
diff --git a/include/configs/odroid_xu3.h b/include/configs/odroid_xu3.h
index 9fa86603f6..c395020919 100644
--- a/include/configs/odroid_xu3.h
+++ b/include/configs/odroid_xu3.h
@@ -25,13 +25,11 @@
#define CONFIG_CMD_MMC
-/*
- * FIXME: The number of bank is actually 8. But there is no way to reserve the
- * last 16 Mib in the last bank now. So I just excluded the last bank
- * temporally.
- */
-#define CONFIG_NR_DRAM_BANKS 7
+#define CONFIG_NR_DRAM_BANKS 8
#define SDRAM_BANK_SIZE (256UL << 20UL) /* 256 MB */
+/* Reserve the last 22 MiB for the secure firmware */
+#define CONFIG_SYS_MEM_TOP_HIDE (22UL << 20UL)
+#define CONFIG_TZSW_RESERVED_DRAM_SIZE CONFIG_SYS_MEM_TOP_HIDE
#define CONFIG_ENV_IS_IN_MMC