From dff29e0c65462258776b8fb821516faad3ec1394 Mon Sep 17 00:00:00 2001 From: Ting Shen Date: Mon, 28 Jan 2019 18:15:00 +0800 Subject: bootmem: add new memory type for BL31 After CL:31122, we can finally define a memory type specific for BL31, to make sure BL31 is not loaded on other reserved area. Change-Id: Idbd9a7fe4b12af23de1519892936d8d88a000e2c Signed-off-by: Ting Shen Reviewed-on: https://review.coreboot.org/c/31123 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner --- src/soc/mediatek/mt8173/soc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/soc/mediatek/mt8173/soc.c') diff --git a/src/soc/mediatek/mt8173/soc.c b/src/soc/mediatek/mt8173/soc.c index 37ceb34fd4..b5c805a595 100644 --- a/src/soc/mediatek/mt8173/soc.c +++ b/src/soc/mediatek/mt8173/soc.c @@ -13,10 +13,16 @@ * GNU General Public License for more details. */ +#include #include #include #include +void bootmem_platform_add_ranges(void) +{ + bootmem_add_range(0x101000, 124 * KiB, BM_MEM_BL31); +} + static void soc_read_resources(struct device *dev) { ram_resource(dev, 0, (uintptr_t)_dram / KiB, sdram_size() / KiB); -- cgit v1.2.3