diff options
author | Lee Leahy <leroy.p.leahy@intel.com> | 2016-02-28 11:30:17 -0800 |
---|---|---|
committer | Leroy P Leahy <leroy.p.leahy@intel.com> | 2016-02-29 05:00:27 +0100 |
commit | 79f065a79d4dd7dbfd2844eab5e5ccc68f3ba523 (patch) | |
tree | dde28858a2db2027a473ee859fc36e84f44bbaef /src/soc/intel | |
parent | a6de5470fa757f7e9c40d417e7f40551ccdba99c (diff) |
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>
Diffstat (limited to 'src/soc/intel')
-rw-r--r-- | src/soc/intel/quark/northcluster.c | 8 |
1 files changed, 7 insertions, 1 deletions
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)); |