diff --git a/src/mainboard/google/oak/bootblock.c b/src/mainboard/google/oak/bootblock.c index efb489fb15..49cf5ddf65 100644 --- a/src/mainboard/google/oak/bootblock.c +++ b/src/mainboard/google/oak/bootblock.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -78,6 +79,9 @@ void bootblock_mainboard_init(void) /* set nor related GPIO */ nor_set_gpio_pinmux(); + /* Init i2c bus 2 Timing register for TPM */ + mtk_i2c_bus_init(CONFIG_DRIVER_TPM_I2C_BUS); + mtk_spi_init(CONFIG_EC_GOOGLE_CHROMEEC_SPI_BUS, SPI_PAD1_MASK, 6*MHz); setup_chromeos_gpios(); diff --git a/src/mainboard/google/oak/mainboard.c b/src/mainboard/google/oak/mainboard.c index 544041f6a9..1713c9bdf7 100644 --- a/src/mainboard/google/oak/mainboard.c +++ b/src/mainboard/google/oak/mainboard.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -53,6 +54,9 @@ static void register_da9212_to_bl31(void) }, }; register_bl31_param(¶m_da9212.h); + + /* Init i2c bus Timing register for da9212 */ + mtk_i2c_bus_init(param_da9212.i2c_bus); #endif } @@ -66,6 +70,9 @@ static void register_mt6311_to_bl31(void) .i2c_bus = 1, }; register_bl31_param(¶m_mt6311.h); + + /* Init i2c bus Timing register for mt6311 */ + mtk_i2c_bus_init(param_mt6311.i2c_bus); #endif } @@ -119,6 +126,9 @@ static void configure_audio(void) mt6391_gpio_output(MT6391_KP_COL4, 1); mt6391_gpio_output(MT6391_KP_COL5, 1); + /* Init i2c bus Timing register for audio codecs */ + mtk_i2c_bus_init(0); + /* set I2S clock to 48KHz */ mt_pll_set_aud_div(48 * KHz); }