u-boot/arch/x86/cpu/tangier
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
..
acpi.c acpi: Allow creating the GNVS to fail 2020-07-17 14:32:24 +08:00
car.S SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig x86: edison: Generate an image suitable for xFSTK 2020-09-25 11:27:28 +08:00
Makefile x86: tangier: pinmux: add API to configure protected pins 2018-09-17 17:35:52 +08:00
pinmux.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
sdram.c x86: tangier: Find proper memory region for relocation 2020-12-16 13:47:34 +08:00
sysreset.c sysreset: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
tangier.c common: Drop init.h from common header 2020-05-18 17:33:33 -04:00