summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Hendricks <dhendricks@fb.com>2018-04-25 16:47:45 -0700
committerDavid Hendricks <david.hendricks@gmail.com>2018-05-05 02:50:33 +0000
commit99d3ef85cfaa942b0302537a56d95d232e6a237b (patch)
treeff9011b18ffec9076c43ad466bbe85b1eaeb9ef3 /src
parent8abd7072f6c3aa47162ef26707ca2a8e227b070c (diff)
fsp_broadwell_de: Add option to enable EHCI controllers
Change-Id: I74ee9448923015ac5ec3eec770669f3491a375ba Signed-off-by: David Hendricks <dhendricks@fb.com> Reviewed-on: https://review.coreboot.org/26042 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/fsp_broadwell_de/fsp/Kconfig12
-rw-r--r--src/soc/intel/fsp_broadwell_de/fsp/chipset_fsp_util.c11
2 files changed, 23 insertions, 0 deletions
diff --git a/src/soc/intel/fsp_broadwell_de/fsp/Kconfig b/src/soc/intel/fsp_broadwell_de/fsp/Kconfig
index e9c6c312e6..32fe0b8be3 100644
--- a/src/soc/intel/fsp_broadwell_de/fsp/Kconfig
+++ b/src/soc/intel/fsp_broadwell_de/fsp/Kconfig
@@ -107,3 +107,15 @@ config FSP_HYPERTHREADING
default y
help
Enable Intel(r) Hyper-Threading Technology for the Broadwell-DE SoC.
+
+config FSP_EHCI1_ENABLE
+ bool "EHCI1 Enable"
+ default n
+ help
+ Enable EHCI controller 1
+
+config FSP_EHCI2_ENABLE
+ bool "EHCI2 Enable"
+ default n
+ help
+ Enable EHCI controller 2
diff --git a/src/soc/intel/fsp_broadwell_de/fsp/chipset_fsp_util.c b/src/soc/intel/fsp_broadwell_de/fsp/chipset_fsp_util.c
index 0f9ffa9494..148ffdc367 100644
--- a/src/soc/intel/fsp_broadwell_de/fsp/chipset_fsp_util.c
+++ b/src/soc/intel/fsp_broadwell_de/fsp/chipset_fsp_util.c
@@ -105,6 +105,17 @@ static void ConfigureDefaultUpdData(UPD_DATA_REGION *UpdData)
UpdData->HyperThreading = 1;
else
UpdData->HyperThreading = 0;
+
+ /* Enable USB */
+ if (IS_ENABLED(CONFIG_FSP_EHCI1_ENABLE))
+ UpdData->Ehci1Enable = 1;
+ else
+ UpdData->Ehci1Enable = 0;
+
+ if (IS_ENABLED(CONFIG_FSP_EHCI2_ENABLE))
+ UpdData->Ehci2Enable = 1;
+ else
+ UpdData->Ehci2Enable = 0;
}
/* Set up the Broadwell-DE specific structures for the call into the FSP */