diff options
Diffstat (limited to 'board/stern/board.c')
-rw-r--r-- | board/stern/board.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/board/stern/board.c b/board/stern/board.c index 609dfdf7e5..979fd3da3f 100644 --- a/board/stern/board.c +++ b/board/stern/board.c @@ -67,8 +67,20 @@ BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT); /******************************************************************************/ /* I2C ports */ const struct i2c_port_t i2c_ports[] = { - {"typec", 0, 400, GPIO_I2C1_SCL, GPIO_I2C1_SDA}, - {"other", 1, 100, GPIO_I2C2_SCL, GPIO_I2C2_SDA}, + { + .name = "typec", + .port = 0, + .kbps = 400, + .scl = GPIO_I2C1_SCL, + .sda = GPIO_I2C1_SDA + }, + { + .name = "other", + .port = 1, + .kbps = 100, + .scl = GPIO_I2C2_SCL, + .sda = GPIO_I2C2_SDA + }, }; const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); |