diff options
-rw-r--r-- | board/cr50/board.c | 2 | ||||
-rw-r--r-- | board/cr50/board.h | 2 | ||||
-rw-r--r-- | common/i2c_wedge.c | 2 | ||||
-rw-r--r-- | driver/ina2xx.c | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/board/cr50/board.c b/board/cr50/board.c index 9b1ce10f6d..d9720956de 100644 --- a/board/cr50/board.c +++ b/board/cr50/board.c @@ -228,7 +228,7 @@ static int other_rw_is_inactive(void) /* I2C Port definition */ const struct i2c_port_t i2c_ports[] = { - {"master", I2C_PORT_MASTER, 100, + {"controller", I2C_PORT_CONTROLLER, 100, GPIO_I2C_SCL_INA, GPIO_I2C_SDA_INA}, }; const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); diff --git a/board/cr50/board.h b/board/cr50/board.h index 7e3efc79bd..6eb075a022 100644 --- a/board/cr50/board.h +++ b/board/cr50/board.h @@ -515,7 +515,7 @@ enum nvmem_users { #define CONFIG_SN_BITS_SUPPORT #define CONFIG_EXTENDED_VERSION_INFO -#define I2C_PORT_MASTER 0 +#define I2C_PORT_CONTROLLER 0 #define CONFIG_BASE32 #define CONFIG_RMA_AUTH diff --git a/common/i2c_wedge.c b/common/i2c_wedge.c index ef87234cce..7b52698ed5 100644 --- a/common/i2c_wedge.c +++ b/common/i2c_wedge.c @@ -10,7 +10,7 @@ * pit: * * #define CONFIG_CMD_I2CWEDGE - * #define I2C_PORT_HOST I2C_PORT_MASTER + * #define I2C_PORT_HOST I2C_PORT_CONTROLLER * */ diff --git a/driver/ina2xx.c b/driver/ina2xx.c index 2b0fca07e5..66c8742957 100644 --- a/driver/ina2xx.c +++ b/driver/ina2xx.c @@ -24,7 +24,7 @@ uint16_t ina2xx_read(uint8_t idx, uint8_t reg) int res; int val; - res = i2c_read16(I2C_PORT_MASTER, INA2XX_I2C_ADDR_FLAGS | idx, + res = i2c_read16(I2C_PORT_CONTROLLER, INA2XX_I2C_ADDR_FLAGS | idx, reg, &val); if (res) { CPRINTS("INA2XX I2C read failed"); @@ -38,7 +38,7 @@ int ina2xx_write(uint8_t idx, uint8_t reg, uint16_t val) int res; uint16_t be_val = (val >> 8) | ((val & 0xff) << 8); - res = i2c_write16(I2C_PORT_MASTER, INA2XX_I2C_ADDR_FLAGS | idx, + res = i2c_write16(I2C_PORT_CONTROLLER, INA2XX_I2C_ADDR_FLAGS | idx, reg, be_val); if (res) CPRINTS("INA2XX I2C write failed"); |