diff options
author | Duncan Laurie <dlaurie@chromium.org> | 2018-03-26 02:19:58 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-03-28 06:43:40 +0000 |
commit | 4c8fbc065874d352b2215739bae0e0ae8a04757e (patch) | |
tree | 973d1907075af5c7c211672292767617c036e061 /src/soc/intel/apollolake/xdci.c | |
parent | 4df7d2c4953822c33be77e20e2ceff896e4a65c5 (diff) |
soc/intel/apollolake: Limit xDCI feature when VBOOT is enabled
Use the common xDCI function to check if the controller is allowed
in the current mode before enabling it. Otherwise, disable the
PCI device if it has been enabled in devicetree.
Change-Id: I5aea15511c52d1191babf551feb237f4144683e4
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://review.coreboot.org/25364
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/intel/apollolake/xdci.c')
-rw-r--r-- | src/soc/intel/apollolake/xdci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/apollolake/xdci.c b/src/soc/intel/apollolake/xdci.c index 4c3047c41b..07207b3bbb 100644 --- a/src/soc/intel/apollolake/xdci.c +++ b/src/soc/intel/apollolake/xdci.c @@ -54,7 +54,7 @@ static void configure_host_mode_port0(struct device *dev) * enabled. If it's disabled assume the switch was already done * in FSP. */ - if (!dev->enabled || !xdci_dev->enabled) + if (!dev->enabled || !xdci_dev->enabled || !xdci_can_enable()) return; printk(BIOS_INFO, "Putting port 0 into host mode.\n"); |