summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2018-04-25 18:19:58 -0700
committerFurquan Shaikh <furquan@google.com>2018-04-27 02:51:40 +0000
commit0b78ae5476d5ef4a0b6329e20d273d843a43e798 (patch)
treea31fe082eb8a98738515a50ebe4aaa04b2caa4f1 /src/soc
parent95673afc78c9bdc3c78734c8e23a67f37dc8c8cd (diff)
soc/intel/common/block/xdci: Use vboot_can_enable_udc in xdci_can_enable
This change uses the newly added vboot_can_enable_udc to decide if it is okay to enable xDCI in vboot developer mode. BUG=b:78577893 BRANCH=poppy Change-Id: Ia83b91ce17eec782faf5bb318ad8c00c09e2db05 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/25848 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/common/block/xdci/xdci.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/soc/intel/common/block/xdci/xdci.c b/src/soc/intel/common/block/xdci/xdci.c
index cc42f2c65c..eb330ee6ee 100644
--- a/src/soc/intel/common/block/xdci/xdci.c
+++ b/src/soc/intel/common/block/xdci/xdci.c
@@ -24,13 +24,9 @@
__weak void soc_xdci_init(struct device *dev) { /* no-op */ }
-/* Only allow xDCI controller in developer mode if VBOOT is enabled */
int xdci_can_enable(void)
{
- if (IS_ENABLED(CONFIG_VBOOT))
- return vboot_developer_mode_enabled() ? 1 : 0;
- else
- return 1;
+ return vboot_can_enable_udc();
}
static struct device_operations usb_xdci_ops = {