soc/intel/apollolake: fix incorrect bdsm -> tolud memory resources

The wrong base address was being used for the region of memory
between BDSM and TOLUD. This resulted in a very large reserved
region starting at TOLUD instead of BDSM.

Change-Id: I41d06267ffa93ea47aa059f4ddb7b9c349e51583
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/14628
Tested-by: build bot (Jenkins)
Reviewed-by: Duncan Laurie <dlaurie@google.com>
Reviewed-by: Andrey Petrov <andrey.petrov@intel.com>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
Aaron Durbin 2016-05-05 15:00:01 -05:00
parent f5ff854c36
commit 7ec9b6c6ac
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ static int mc_add_dram_resources(device_t dev, int index)
mmio_resource(dev, index++, bgsm / KiB, (bdsm - bgsm) / KiB); mmio_resource(dev, index++, bgsm / KiB, (bdsm - bgsm) / KiB);
/* BDSM -> TOLUD */ /* BDSM -> TOLUD */
mmio_resource(dev, index++, tolud / KiB, (tolud - bdsm) / KiB); mmio_resource(dev, index++, bdsm / KiB, (tolud - bdsm) / KiB);
/* 4G -> TOUUD */ /* 4G -> TOUUD */
base_k = 4ULL*GiB / KiB; base_k = 4ULL*GiB / KiB;