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 <leroy.p.leahy@intel.com>
Reviewed-on: https://review.coreboot.org/13856
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Lee Leahy 2016-02-28 11:30:17 -08:00 committed by Leroy P Leahy
parent a6de5470fa
commit 79f065a79d
1 changed files with 7 additions and 1 deletions

View File

@ -59,7 +59,13 @@ static void nc_read_resources(device_t dev)
size_k = (unsigned long)cbmem_top() - base_k; size_k = (unsigned long)cbmem_top() - base_k;
ram_resource(dev, index++, RES_IN_KIB(base_k), RES_IN_KIB(size_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; base_k += size_k;
size_k = 0x100000000ull - base_k; size_k = 0x100000000ull - base_k;
mmio_resource(dev, index++, RES_IN_KIB(base_k), RES_IN_KIB(size_k)); mmio_resource(dev, index++, RES_IN_KIB(base_k), RES_IN_KIB(size_k));