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>
This commit is contained in:
Frans Hendriks
2018-11-27 10:35:16 +01:00
committed by Patrick Georgi
parent 1c329a05de
commit ef05dc8a50
2 changed files with 4 additions and 2 deletions

View File

@@ -131,6 +131,7 @@ static void nc_read_resources(struct device *dev)
reserved_ram_resource(dev, index++, (0xc0000 >> 10), reserved_ram_resource(dev, index++, (0xc0000 >> 10),
(0x100000 - 0xc0000) >> 10); (0x100000 - 0xc0000) >> 10);
if (IS_ENABLED(CONFIG_CHROMEOS))
chromeos_reserve_ram_oops(dev, index++); chromeos_reserve_ram_oops(dev, index++);
} }

View File

@@ -372,6 +372,7 @@ static void mc_add_dram_resources(struct device *dev, int *resource_cnt)
reserved_ram_resource(dev, index++, (0xc0000 >> 10), reserved_ram_resource(dev, index++, (0xc0000 >> 10),
(0x100000 - 0xc0000) >> 10); (0x100000 - 0xc0000) >> 10);
if (IS_ENABLED(CONFIG_CHROMEOS))
chromeos_reserve_ram_oops(dev, index++); chromeos_reserve_ram_oops(dev, index++);
*resource_cnt = index; *resource_cnt = index;