summaryrefslogtreecommitdiff
path: root/common/cbi.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cbi.c')
-rw-r--r--common/cbi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/cbi.c b/common/cbi.c
index f37d6950b1..1bc069939e 100644
--- a/common/cbi.c
+++ b/common/cbi.c
@@ -72,8 +72,8 @@ static struct cbi_header * const head = (struct cbi_header *)cbi;
static int read_eeprom(uint8_t offset, uint8_t *in, int in_size)
{
- return i2c_read_block(I2C_PORT_EEPROM, I2C_ADDR_EEPROM, offset,
- in, in_size);
+ return i2c_read_block__7bf(I2C_PORT_EEPROM, I2C_ADDR_EEPROM__7bf,
+ offset, in, in_size);
}
/*
@@ -220,8 +220,8 @@ static int write_board_info(void)
while (rest > 0) {
int size = MIN(EEPROM_PAGE_WRITE_SIZE, rest);
int rv;
- rv = i2c_write_block(I2C_PORT_EEPROM, I2C_ADDR_EEPROM,
- p - cbi, p, size);
+ rv = i2c_write_block__7bf(I2C_PORT_EEPROM, I2C_ADDR_EEPROM__7bf,
+ p - cbi, p, size);
if (rv) {
CPRINTS("Failed to write for %d", rv);
return rv;