summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongjin Kim <tobetter@hardkernel.com>2019-08-20 05:00:11 +0300
committerDongjin Kim <tobetter@hardkernel.com>2019-08-20 05:00:11 +0300
commit91afded143b8ceff37e0e94fbcc8777390d4a60b (patch)
tree0b6a1a5648ea6aed1159effaa146f5fdd0828318
parent7dd95889d965e5beba61e40f402770ac94af696f (diff)
downloadu-boot-91afded143b8ceff37e0e94fbcc8777390d4a60b.tar.xz
Revert "ODROID-C3/N2: removing CONFIG_SYS_MEM_TOP_HIDE to free 128MB"
This reverts commit 7dd95889d965e5beba61e40f402770ac94af696f. Change-Id: I4de1c79672c4e458fb0501186deea817d1f46a38
-rw-r--r--drivers/usb/gadget/f_fastboot.c6
-rw-r--r--include/configs/odroid-g12-common.h1
2 files changed, 2 insertions, 5 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index ec0dc3bccb..250d27dadc 100644
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -147,11 +147,7 @@ unsigned int ddr_size_usable(unsigned int addr_start)
for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++)
ddr_size += gd->bd->bi_dram[i].size;
- free_size = (ddr_size - DRAM_UBOOT_RESERVE - addr_start - CONFIG_SYS_MALLOC_LEN);
-#if defined(CONFIG_SYS_MEM_TOP_HIDE)
- free_size -= CONFIG_SYS_MEM_TOP_HIDE
-#endif
-
+ free_size = (ddr_size - DRAM_UBOOT_RESERVE - addr_start - CONFIG_SYS_MALLOC_LEN - CONFIG_SYS_MEM_TOP_HIDE);
#if defined CONFIG_FASTBOOT_MAX_DOWN_SIZE
if (free_size > CONFIG_FASTBOOT_MAX_DOWN_SIZE)
free_size = CONFIG_FASTBOOT_MAX_DOWN_SIZE;
diff --git a/include/configs/odroid-g12-common.h b/include/configs/odroid-g12-common.h
index 90181c8b89..9278411c4e 100644
--- a/include/configs/odroid-g12-common.h
+++ b/include/configs/odroid-g12-common.h
@@ -542,6 +542,7 @@
#define CONFIG_CMD_MISC 1
#define CONFIG_CMD_ITEST 1
#define CONFIG_CMD_CPU_TEMP 1
+#define CONFIG_SYS_MEM_TOP_HIDE 0x08000000 /* hide 128MB for kernel reserve */
#define CONFIG_CMD_LOADB 1
#define CONFIG_SUPPORT_RAW_INITRD 1