# Pastebin fnBytKmT --- a/arch/arm/lib/bootm-fdt.c +++ b/arch/arm/lib/bootm-fdt.c @@ -30,6 +30,10 @@ int arch_fixup_memory_node(void *blob) for (bank = 0; bank < CONFIG_NR_DRAM_BANKS; bank++) { start[bank] = bd->bi_dram[bank].start; size[bank] = bd->bi_dram[bank].size; +#if defined(CONFIG_MTK_ATF) + /*return 16M dram to kernel , dram_init() furnction borrow 16M*/ + size[bank] += SZ_16M; +#endif } return fdt_fixup_memory_banks(blob, start, size, CONFIG_NR_DRAM_BANKS);