diff options
Diffstat (limited to 'src/mainboard/google/cherry/bootblock.c')
-rw-r--r-- | src/mainboard/google/cherry/bootblock.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mainboard/google/cherry/bootblock.c b/src/mainboard/google/cherry/bootblock.c index c506cafc27..c811c4eb2e 100644 --- a/src/mainboard/google/cherry/bootblock.c +++ b/src/mainboard/google/cherry/bootblock.c @@ -5,6 +5,7 @@ #include <gpio.h> #include <soc/gpio.h> #include <soc/i2c.h> +#include <soc/pcie.h> #include <soc/spi.h> #include "gpio.h" @@ -43,6 +44,13 @@ static void usb3_hub_reset(void) void bootblock_mainboard_init(void) { + /* + * Initialize PCIe pinmux and assert PERST# early to reduce + * the impact of 100ms delay. + */ + if (CONFIG(PCI)) + mtk_pcie_pre_init(); + mtk_i2c_bus_init(CONFIG_DRIVER_TPM_I2C_BUS, I2C_SPEED_FAST); mtk_spi_init(CONFIG_EC_GOOGLE_CHROMEEC_SPI_BUS, SPI_PAD0_MASK, 3 * MHz, 0); nor_set_gpio_pinmux(); |