diff options
Diffstat (limited to 'board/daisy/board.c')
-rw-r--r-- | board/daisy/board.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/board/daisy/board.c b/board/daisy/board.c index 73046d1278..face2b8f62 100644 --- a/board/daisy/board.c +++ b/board/daisy/board.c @@ -73,6 +73,10 @@ const struct gpio_info gpio_list[GPIO_COUNT] = { {"KB_OUT10", GPIO_C, (1<<5), GPIO_KB_OUTPUT, NULL}, {"KB_OUT11", GPIO_C, (1<<6), GPIO_KB_OUTPUT, NULL}, {"KB_OUT12", GPIO_C, (1<<7), GPIO_KB_OUTPUT, NULL}, + + /* bi-directional, initialized as hi-Z until alt. function is set */ + {"I2C_SCL", GPIO_B, (1<<10), GPIO_HI_Z, NULL}, + {"I2C_SDA", GPIO_B, (1<<11), GPIO_HI_Z, NULL}, }; void configure_board(void) @@ -116,6 +120,9 @@ void configure_board(void) STM32L_GPIO_MODER_OFF(GPIO_B) |= 0x1 << (2*9); /* put GPIO in Hi-Z state */ gpio_set_level(GPIO_EC_INT, 1); + + /* I2C2 SCL/SDA on pins PB10/PB11 - no internal pullup/down */ + gpio_set_alternate_function(GPIO_B, (1<<10) | (1<<11), GPIO_ALT_I2C); } void board_keyboard_scan_ready(void) |