Commit 5c965ed901c09bd046a99c7dc9269e3be2829604

Authored by Hans de Goede
1 parent daf6d399ae

sunxi: Tweak various memory addresses

For the upcoming nand support we need a bigger heap, esp. ubi[fs] uses
quite a bit of memory, increase the heap size to 64 MB.

Our video code returns unused reserved framebuffer memory to the kernel
before booting it. Drop the #ifdef-ery and simply always reserve 16 MB.

Adjust bootm_size for the above changes.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>

Showing 1 changed file with 5 additions and 9 deletions Side-by-side Diff

include/configs/sunxi-common.h
... ... @@ -145,8 +145,8 @@
145 145 #define CONFIG_SYS_MMC_ENV_DEV 0 /* first detected MMC controller */
146 146 #endif
147 147  
148   -/* 4MB of malloc() pool */
149   -#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (4 << 20))
  148 +/* 64MB of malloc() pool */
  149 +#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (64 << 20))
150 150  
151 151 /*
152 152 * Miscellaneous configurable options
... ... @@ -275,11 +275,7 @@
275 275 * The amount of RAM to keep free at the top of RAM when relocating u-boot,
276 276 * to use as framebuffer. This must be a multiple of 4096.
277 277 */
278   -#ifdef CONFIG_VIDEO_LCD_PANEL_EDP_4_LANE_1620M_VIA_ANX9804
279   -#define CONFIG_SUNXI_MAX_FB_SIZE (12 << 20)
280   -#else
281   -#define CONFIG_SUNXI_MAX_FB_SIZE (9 << 20)
282   -#endif
  278 +#define CONFIG_SUNXI_MAX_FB_SIZE (16 << 20)
283 279  
284 280 /* Do we want to initialize a simple FB? */
285 281 #define CONFIG_VIDEO_DT_SIMPLEFB
286 282  
... ... @@ -386,12 +382,12 @@
386 382 #define CONFIG_PRE_CON_BUF_SZ 4096 /* Aprox 2 80*25 screens */
387 383  
388 384 /*
389   - * 240M RAM (256M minimum minus space for the framebuffer),
  385 + * 160M RAM (256M minimum minus 64MB heap + 32MB for u-boot, stack, fb, etc.
390 386 * 32M uncompressed kernel, 16M compressed kernel, 1M fdt,
391 387 * 1M script, 1M pxe and the ramdisk at the end.
392 388 */
393 389 #define MEM_LAYOUT_ENV_SETTINGS \
394   - "bootm_size=0xf000000000000\0" \" \
  390 + "bootm_size=0xa000000000000\0" \" \
395 391 "kernel_addr_r=" __stringify(SDRAM_OFFSET(2000000)) "\0" \
396 392 "fdt_addr_r=" __stringify(SDRAM_OFFSET(3000000)) "\0" \
397 393 "scriptaddr=" __stringify(SDRAM_OFFSET(3100000)) "\0" \