diff options
author | Frans Hendriks <fhendriks@eltan.com> | 2018-11-27 10:35:16 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-11-28 11:51:26 +0000 |
commit | ef05dc8a50fd68024f1f6c7574380768cb070550 (patch) | |
tree | 90a7c802a662d7d835a3abffde133a34d8c62fdc /src | |
parent | 1c329a05de8b821cd85c25cf8ab7d1e73714073f (diff) | |
download | coreboot-ef05dc8a50fd68024f1f6c7574380768cb070550.tar.xz |
soc/intel/{baytrail,broadwell}: Correct Chromeos RAM reservation
RAM is reserved for Chromeos even when Chrome is not used.
Use CONFIG_CHROMEOS to determine is RAM must be reserved.
BUG=N/A
TEST=Intel BayTrail CRB
Change-Id: Ic1f5089227f802e2b2f62dc02fa0d1648c1855b5
Signed-off-by: Frans Hendriks <fhendriks@eltan.com>
Reviewed-on: https://review.coreboot.org/c/29856
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/intel/baytrail/northcluster.c | 3 | ||||
-rw-r--r-- | src/soc/intel/broadwell/systemagent.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/soc/intel/baytrail/northcluster.c b/src/soc/intel/baytrail/northcluster.c index 82717463fa..0869c7b656 100644 --- a/src/soc/intel/baytrail/northcluster.c +++ b/src/soc/intel/baytrail/northcluster.c @@ -131,7 +131,8 @@ static void nc_read_resources(struct device *dev) reserved_ram_resource(dev, index++, (0xc0000 >> 10), (0x100000 - 0xc0000) >> 10); - chromeos_reserve_ram_oops(dev, index++); + if (IS_ENABLED(CONFIG_CHROMEOS)) + chromeos_reserve_ram_oops(dev, index++); } static struct device_operations nc_ops = { diff --git a/src/soc/intel/broadwell/systemagent.c b/src/soc/intel/broadwell/systemagent.c index 71477508b9..80139795d6 100644 --- a/src/soc/intel/broadwell/systemagent.c +++ b/src/soc/intel/broadwell/systemagent.c @@ -372,7 +372,8 @@ static void mc_add_dram_resources(struct device *dev, int *resource_cnt) reserved_ram_resource(dev, index++, (0xc0000 >> 10), (0x100000 - 0xc0000) >> 10); - chromeos_reserve_ram_oops(dev, index++); + if (IS_ENABLED(CONFIG_CHROMEOS)) + chromeos_reserve_ram_oops(dev, index++); *resource_cnt = index; } |