summaryrefslogtreecommitdiff
path: root/src/soc/intel
diff options
context:
space:
mode:
authorFrans Hendriks <fhendriks@eltan.com>2018-12-14 07:49:18 +0100
committerPatrick Georgi <pgeorgi@google.com>2018-12-19 05:25:08 +0000
commited7780d353226107e0f128fc6fb49c0e5e9871e6 (patch)
tree1ae2825fea80f20bba819c0e589cc4a0b4e86974 /src/soc/intel
parent40a69f39359ec01e9a9b25dc33504c7b92948800 (diff)
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 <fhendriks@eltan.com> Reviewed-on: https://review.coreboot.org/c/29332 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/intel')
-rw-r--r--src/soc/intel/braswell/northcluster.c4
1 files changed, 3 insertions, 1 deletions
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 = {