summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTristan Shieh <tristan.shieh@mediatek.com>2018-09-26 14:33:54 +0800
committerPatrick Georgi <pgeorgi@google.com>2018-10-17 12:05:47 +0000
commit71ae582f71818f9107b943479899c5548f763975 (patch)
tree060863484afdf41ad2a01f36b0b279bfd14ec20a /src
parentb2c136d9601b6a8a93a2214018df1961a8c2c75c (diff)
google/kukui: Configure USB
Set up USB host controller. BUG=b:80501386 BRANCH=none TEST=Boots correctly on Kukui Change-Id: Iec98f3dc1bbf3dda3d28dbefad15339d48608c7e Signed-off-by: Tristan Shieh <tristan.shieh@mediatek.com> Reviewed-on: https://review.coreboot.org/28788 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Joel Kitching <kitching@google.com> Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/kukui/mainboard.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mainboard/google/kukui/mainboard.c b/src/mainboard/google/kukui/mainboard.c
index 9190ee7e6e..e1d8f5fb8d 100644
--- a/src/mainboard/google/kukui/mainboard.c
+++ b/src/mainboard/google/kukui/mainboard.c
@@ -16,6 +16,7 @@
#include <device/device.h>
#include <soc/gpio.h>
#include <soc/mmu_operations.h>
+#include <soc/usb.h>
static void configure_emmc(void)
{
@@ -31,9 +32,15 @@ static void configure_emmc(void)
gpio_set_pull(emmc_pin[i], GPIO_PULL_ENABLE, GPIO_PULL_UP);
}
+static void configure_usb(void)
+{
+ setup_usb_host();
+}
+
static void mainboard_init(struct device *dev)
{
configure_emmc();
+ configure_usb();
}
static void mainboard_enable(struct device *dev)