common: bootm: add lmb reserve for fdt

this avoids fdt being overriden when ramdisk relocation if
fdt is too close to lmb allocable high memory region.

fixes: 5af94f7887
(android: get fdt by suitable ways)

Change-Id: Iadd5854269d0832b0c0455c8423b9d4172768ce3
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2018-11-12 16:16:09 +08:00 committed by Jianhong Chen
parent 9983001913
commit 2efa632c45
1 changed files with 1 additions and 0 deletions

View File

@ -252,6 +252,7 @@ int bootm_find_images(int flag, int argc, char * const argv[])
return 1;
}
set_working_fdt_addr((ulong)images.ft_addr);
lmb_reserve(&images.lmb, (ulong)images.ft_addr, (ulong)images.ft_len);
#endif
#if IMAGE_ENABLE_FIT