summaryrefslogtreecommitdiff
path: root/src/mainboard/google/corsola/bootblock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/corsola/bootblock.c')
-rw-r--r--src/mainboard/google/corsola/bootblock.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mainboard/google/corsola/bootblock.c b/src/mainboard/google/corsola/bootblock.c
index 71f1d3687d..87b972d59c 100644
--- a/src/mainboard/google/corsola/bootblock.c
+++ b/src/mainboard/google/corsola/bootblock.c
@@ -2,10 +2,16 @@
#include <bootblock_common.h>
#include <device/mmio.h>
+#include <gpio.h>
#include <soc/spi.h>
#include "gpio.h"
+static void usb3_hub_reset(void)
+{
+ gpio_output(GPIO_USB3_HUB_RST_L, 1);
+}
+
void bootblock_mainboard_init(void)
{
mtk_spi_init(CONFIG_EC_GOOGLE_CHROMEEC_SPI_BUS, SPI_PAD0_MASK, 3 * MHz, 0);
@@ -13,4 +19,5 @@ void bootblock_mainboard_init(void)
mtk_snfc_init(SPI_NOR_GPIO_SET1);
setup_chromeos_gpios();
gpio_eint_configure(GPIO_GSC_AP_INT_ODL, IRQ_TYPE_EDGE_RISING);
+ usb3_hub_reset();
}