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>
This commit is contained in:
Tristan Shieh 2018-09-26 14:33:54 +08:00 committed by Patrick Georgi
parent b2c136d960
commit 71ae582f71
1 changed files with 7 additions and 0 deletions

View File

@ -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)