diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2018-12-29 14:00:46 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-05-29 20:02:57 +0000 |
commit | 6d6945b807469675f872124f33250d2e5c0f14b8 (patch) | |
tree | 7416743fc4df7b0ed1d805abaff12cf64f603660 /src/soc/intel/apollolake/meminit.c | |
parent | 87c4f11c64713c8a90d7a6ffe997da891c9758d4 (diff) | |
download | coreboot-6d6945b807469675f872124f33250d2e5c0f14b8.tar.xz |
soc/intel/apollolake: Don't use CAR_GLOBAL
All platforms using this code have NO_CAR_GLOBAL_MIGRATION.
Change-Id: I0f393385aa94f18c2e05af3b5a54999575323d18
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/30510
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/soc/intel/apollolake/meminit.c')
-rw-r--r-- | src/soc/intel/apollolake/meminit.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/soc/intel/apollolake/meminit.c b/src/soc/intel/apollolake/meminit.c index 038fa9fb2b..219b661042 100644 --- a/src/soc/intel/apollolake/meminit.c +++ b/src/soc/intel/apollolake/meminit.c @@ -12,7 +12,6 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ -#include <arch/early_variables.h> #include <console/console.h> #include <fsp/util.h> #include <memory_info.h> @@ -21,11 +20,11 @@ #include <fsp/soc_binding.h> #include <string.h> -static size_t memory_size_mib CAR_GLOBAL; +static size_t memory_size_mib; size_t memory_in_system_in_mib(void) { - return car_get_var(memory_size_mib); + return memory_size_mib; } static void accumulate_channel_memory(int density, int dual_rank) @@ -61,7 +60,7 @@ static void accumulate_channel_memory(int density, int dual_rank) sz *= GiB / MiB; - car_set_var(memory_size_mib, car_get_var(memory_size_mib) + sz); + memory_size_mib += sz; } size_t iohole_in_mib(void) |