summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/intel/baytrail/northcluster.c3
-rw-r--r--src/soc/intel/broadwell/systemagent.c3
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;
}