From 290e74ee4e6a102ba3de1cf0c42ce25e4074f4ac Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Wed, 29 Mar 2017 13:36:26 +0530 Subject: [PATCH] UPSTREAM: soc/intel/apollolake: Fix debug build booting issue This patch fix apollolake devices unable to boot with coreboot debug image issue. BUG=none BRANCH=none TEST=none Change-Id: I7b5cb90d51442d6cbf471f59b2a2977114dd1933 Signed-off-by: Patrick Georgi Original-Commit-Id: eb1bdd89dc32e03bb59965016deedf00239ea5cf Original-Change-Id: I28943100ba19dec1e540fdbba1c1e110c6af1488 Original-Signed-off-by: Subrata Banik Original-Reviewed-on: https://review.coreboot.org/19036 Original-Tested-by: build bot (Jenkins) Original-Reviewed-by: Aaron Durbin Original-Reviewed-by: Martin Roth Original-Reviewed-by: Furquan Shaikh Reviewed-on: https://chromium-review.googlesource.com/462965 --- src/soc/intel/apollolake/pmutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/intel/apollolake/pmutil.c b/src/soc/intel/apollolake/pmutil.c index 7d3cb079ac..9e57b28abe 100644 --- a/src/soc/intel/apollolake/pmutil.c +++ b/src/soc/intel/apollolake/pmutil.c @@ -505,7 +505,7 @@ void pmc_gpe_init(void) ROMSTAGE_CONST struct soc_intel_apollolake_config *config; /* Look up the device in devicetree */ - ROMSTAGE_CONST struct device *dev = SA_DEV_ROOT; + ROMSTAGE_CONST struct device *dev = dev_find_slot(0, SA_DEVFN_ROOT); if (!dev || !dev->chip_info) { printk(BIOS_ERR, "BUG! Could not find SOC devicetree config\n"); return;