u-boot-brain/arch/x86
Andy Shevchenko 21096c0af3 x86: tangier: Find proper memory region for relocation
It appears that U-Boot works by luck on Intel Edison board because the amount
of RAM is less than 1 GB and standard way of calculating the top of it work
for this configuration. However, this won't work if the amount of RAM is
different and split differently in address space. We have to find the suitable
window correctly.

Find proper memory region for relocation by scanning MMAP SFI table in
board_get_usable_ram_top() callback.

According to the address map documentation the Main Memory is guaranteed to lie
in the 0..2 GB range, that's why we limit search by this range.

Fixes: e71de54a49 ("x86: Add Intel Tangier support")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: fixed a typo in the commit message]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
2020-12-16 13:47:34 +08:00
..
cpu x86: tangier: Find proper memory region for relocation 2020-12-16 13:47:34 +08:00
dts x86: coral: Update smbios tables to latest definition 2020-11-10 09:44:20 +08:00
include/asm x86: Use CONFIG_CHROMEOS_VBOOT for verified boot 2020-11-06 09:51:31 +08:00
lib x86: zimage: Update cmdline parameter to be an env var 2020-12-16 13:46:11 +08:00
config.mk kconfig / kbuild: Re-sync with Linux 4.19 2020-04-10 11:18:32 -04:00
Kconfig x86: Support Atom SoCs using SWSMISCI rather than the SWSCI 2020-09-25 11:27:18 +08:00
Makefile x86: Allow 16-bit init to be in TPL 2019-05-08 13:02:13 +08:00