From ed7780d353226107e0f128fc6fb49c0e5e9871e6 Mon Sep 17 00:00:00 2001 From: Frans Hendriks Date: Fri, 14 Dec 2018 07:49:18 +0100 Subject: src/soc/intel/braswell/northcluster.c: Correct Chromeos RAM reservation RAM is reserved for Chromeos even when Chrome is not used. Use CONFIG_CHROMEOS to determine if RAM must be reserved. BUG=N/A TEST=Intel CherryHill CRB Change-Id: I3f55bf96ab2ec66cddbb54de03455a9bfd194682 Signed-off-by: Frans Hendriks Reviewed-on: https://review.coreboot.org/c/29332 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/soc/intel/braswell/northcluster.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/soc') diff --git a/src/soc/intel/braswell/northcluster.c b/src/soc/intel/braswell/northcluster.c index 1e5204e218..6e148b9b01 100644 --- a/src/soc/intel/braswell/northcluster.c +++ b/src/soc/intel/braswell/northcluster.c @@ -3,6 +3,7 @@ * * Copyright (C) 2013 Google Inc. * Copyright (C) 2015 Intel Corp. + * Copyright (C) 2018 Eltan B.V. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -156,7 +157,8 @@ static void nc_read_resources(struct device *dev) size_k = RES_IN_KIB(0x00100000); mmio_resource(dev, index++, base_k, size_k); - chromeos_reserve_ram_oops(dev, index++); + if (IS_ENABLED(CONFIG_CHROMEOS)) + chromeos_reserve_ram_oops(dev, index++); } static struct device_operations nc_ops = { -- cgit v1.2.3