diff options
Diffstat (limited to 'src/mainboard/google/oak/bootblock.c')
-rw-r--r-- | src/mainboard/google/oak/bootblock.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mainboard/google/oak/bootblock.c b/src/mainboard/google/oak/bootblock.c index ddd71b3a84..38a777c208 100644 --- a/src/mainboard/google/oak/bootblock.c +++ b/src/mainboard/google/oak/bootblock.c @@ -20,7 +20,17 @@ #include <arch/io.h> #include <bootblock_common.h> #include <delay.h> +#include <soc/gpio.h> #include <soc/pericfg.h> +#include <soc/pinmux.h> + +static void i2c_set_gpio_pinmux(void) +{ + gpio_set_mode(PAD_SDA1, PAD_SDA1_FUNC_SDA1); + gpio_set_mode(PAD_SCL1, PAD_SCL1_FUNC_SCL1); + gpio_set_mode(PAD_SDA4, PAD_SDA4_FUNC_SDA4); + gpio_set_mode(PAD_SCL4, PAD_SCL4_FUNC_SCL4); +} void bootblock_mainboard_early_init(void) { @@ -30,4 +40,9 @@ void bootblock_mainboard_early_init(void) void bootblock_mainboard_init(void) { + /* adjust gpio params when external voltage is 1.8V */ + gpio_init(GPIO_EINT_1P8V); + + /* set i2c related gpio */ + i2c_set_gpio_pinmux(); } |