x86: slimbootloader: Add memory configuration
authorPark, Aiden <aiden.park@intel.com>
Sat, 3 Aug 2019 08:30:36 +0000 (08:30 +0000)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 9 Aug 2019 14:24:02 +0000 (22:24 +0800)
commit1fb17ea548b0f6902e1a45accb0c5d55415938ae
treeec40c16288cd5ad7290d78d067276eb5ccf4bffa
parent7165fd584fe7644113ebac98e4c5290685d2549c
x86: slimbootloader: Add memory configuration

Slim Bootloader provides memory map info thru its HOB list pointer.
Configure memory size and relocation memory from the HOB data, and
provide e820 entries as well.
- Get memory size from the memory map info HOB
- Set available top memory lower than 4GB for U-Boot relocation
- Provide e820 entries from the memory map info HOB

Signed-off-by: Aiden Park <aiden.park@intel.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/slimbootloader/Makefile
arch/x86/cpu/slimbootloader/sdram.c [new file with mode: 0644]
arch/x86/include/asm/arch-slimbootloader/slimbootloader.h [new file with mode: 0644]