From 79f065a79d4dd7dbfd2844eab5e5ccc68f3ba523 Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Sun, 28 Feb 2016 11:30:17 -0800 Subject: soc/intel/quark: Reserve non-MMIO space Adjust the memory map to allocate MMIO from non-memory addresses. TEST=None Change-Id: Icb6863665c466e8609af73eb9338165c7d6f46bf Signed-off-by: Lee Leahy Reviewed-on: https://review.coreboot.org/13856 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Martin Roth --- src/soc/intel/quark/northcluster.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/soc/intel/quark/northcluster.c b/src/soc/intel/quark/northcluster.c index 90ea256708..b52c3b7e79 100644 --- a/src/soc/intel/quark/northcluster.c +++ b/src/soc/intel/quark/northcluster.c @@ -59,7 +59,13 @@ static void nc_read_resources(device_t dev) size_k = (unsigned long)cbmem_top() - base_k; ram_resource(dev, index++, RES_IN_KIB(base_k), RES_IN_KIB(size_k)); - /* cbmem_top -> 4GiB is mmio. */ + /* cbmem_top -> 0xc0000000 - reserved */ + base_k += size_k; + size_k = 0xc0000000 - base_k; + reserved_ram_resource(dev, index++, RES_IN_KIB(base_k), + RES_IN_KIB(size_k)); + + /* 0xc0000000 -> 4GiB is mmio. */ base_k += size_k; size_k = 0x100000000ull - base_k; mmio_resource(dev, index++, RES_IN_KIB(base_k), RES_IN_KIB(size_k)); -- cgit v1.2.3