soc/intel/common: Add function to check if xDCI is allowed
commit4df7d2c4953822c33be77e20e2ceff896e4a65c5
authorDuncan Laurie <dlaurie@chromium.org>
Mon, 26 Mar 2018 09:17:33 +0000 (26 02:17 -0700)
committerPatrick Georgi <pgeorgi@google.com>
Wed, 28 Mar 2018 06:43:03 +0000 (28 06:43 +0000)
treec89b15eda4c21e5f41c4d030cf09e5c8091494c2
parent969ef10f5409f70f85b76f3a7c5b5a4e4a637ee9
soc/intel/common: Add function to check if xDCI is allowed

When CONFIG_VBOOT is enabled then the xDCI controller should only be
enabled if the system is in developer mode.  This prevents a system
in normal/verified mode from being used as a USB peripheral device
which could potentially be used to access user data.

This change adds a function to return whether xDCI can be enabled
or not, which will be used by the SOCs.

Change-Id: Ie3ee9dd7077c094a01fd857a2e4033a12ce8979b
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://review.coreboot.org/25347
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
src/soc/intel/common/block/include/intelblocks/xdci.h
src/soc/intel/common/block/xdci/xdci.c