diff options
Diffstat (limited to 'baseboard/honeybuns/baseboard.c')
-rw-r--r-- | baseboard/honeybuns/baseboard.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/baseboard/honeybuns/baseboard.c b/baseboard/honeybuns/baseboard.c index e423d5fa16..bb0a1c832d 100644 --- a/baseboard/honeybuns/baseboard.c +++ b/baseboard/honeybuns/baseboard.c @@ -7,6 +7,7 @@ #include "console.h" #include "gpio.h" #include "hooks.h" +#include "i2c.h" #include "timer.h" #define CPRINTS(format, args...) cprints(CC_SYSTEM, format, ## args) @@ -29,6 +30,15 @@ static void board_power_sequence(void) } } +/******************************************************************************/ +/* I2C port map configuration */ +const struct i2c_port_t i2c_ports[] = { + {"usbc", I2C_PORT_USBC, 400, GPIO_EC_I2C1_SCL, GPIO_EC_I2C1_SDA}, + {"usb_mst", I2C_PORT_MST, 400, GPIO_EC_I2C2_SCL, GPIO_EC_I2C2_SDA}, + {"eeprom", I2C_PORT_EEPROM, 400, GPIO_EC_I2C3_SCL, GPIO_EC_I2C3_SDA}, +}; +const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); + static void baseboard_init(void) { /* Turn on power rails */ |