lmb: Reserve U-Boot separately if relocation is disabled
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 13 Nov 2021 17:34:37 +0000 (18:34 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 18 Nov 2021 23:20:19 +0000 (18:20 -0500)
commitbd994c007ae232ade284c9c22c9150077961fe19
tree9bb9ab73d08ff331e4c2e10c90aa67a63f255a76
parent47d7d03622ba8b52f87274c7eea917a15e76053b
lmb: Reserve U-Boot separately if relocation is disabled

In case U-Boot starts with GD_FLG_SKIP_RELOC, the U-Boot code is
not relocated, however the stack and heap is at the end of DRAM
after relocation. Reserve a LMB area for the non-relocated U-Boot
code so it won't be overwritten.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
lib/lmb.c