Skip to content

Commit

Permalink
Revert "ODROID-C3/N2: removing CONFIG_SYS_MEM_TOP_HIDE to free 128MB"
Browse files Browse the repository at this point in the history
This reverts commit 7dd9588.

Change-Id: I4de1c79672c4e458fb0501186deea817d1f46a38
  • Loading branch information
tobetter committed Aug 20, 2019
1 parent 794349d commit 2c90598
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/usb/gadget/f_fastboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions include/configs/odroid-g12-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2c90598

Please sign in to comment.