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>
This commit is contained in:
Frans Hendriks 2018-12-14 07:49:18 +01:00 committed by Patrick Georgi
parent 40a69f3935
commit ed7780d353
1 changed files with 3 additions and 1 deletions

View File

@ -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 = {