From d97eb646e75e33c5a4068c21fb20b75ef2acb820 Mon Sep 17 00:00:00 2001 From: Frans Hendriks Date: Mon, 26 Nov 2018 11:01:56 +0100 Subject: soc/intel/braswell/northcluster.c: Reserve local APIC resources The resources of the local APIC are not reserved. Use mmio_resource() to add local APIC resources. BUG=N/A TEST=Intel CherryHill CRB Change-Id: Ieb9de45098d507d59f1974eddb7a94cb18ef7903 Signed-off-by: Frans Hendriks Reviewed-on: https://review.coreboot.org/c/29375 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Rudolph --- src/soc/intel/braswell/northcluster.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/soc/intel/braswell') diff --git a/src/soc/intel/braswell/northcluster.c b/src/soc/intel/braswell/northcluster.c index 40d658c4d4..dcd98b54b1 100644 --- a/src/soc/intel/braswell/northcluster.c +++ b/src/soc/intel/braswell/northcluster.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -148,6 +149,13 @@ static void nc_read_resources(struct device *dev) reserved_ram_resource(dev, index++, (0xc0000 >> 10), (0x100000 - 0xc0000) >> 10); + /* + * Reserve local APIC + */ + base_k = RES_IN_KIB(LAPIC_DEFAULT_BASE); + size_k = RES_IN_KIB(0x00100000); + mmio_resource(dev, index++, base_k, size_k); + chromeos_reserve_ram_oops(dev, index++); } -- cgit v1.2.3