summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/bds/board.c2
-rw-r--r--board/bolt/board.c8
-rw-r--r--board/falco/board.c8
-rw-r--r--board/link/board.c8
-rw-r--r--board/peppy/board.c6
-rw-r--r--board/rambi/board.c6
-rw-r--r--board/samus/board.c8
-rw-r--r--board/slippy/board.c6
8 files changed, 19 insertions, 33 deletions
diff --git a/board/bds/board.c b/board/bds/board.c
index e23b17c33a..90ac5eb946 100644
--- a/board/bds/board.c
+++ b/board/bds/board.c
@@ -34,7 +34,7 @@ BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT);
/* I2C ports */
const struct i2c_port_t i2c_ports[] = {
- {"lightbar", I2C_PORT_LIGHTBAR, 400},
+ {"lightbar", 5, 400},
};
const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
diff --git a/board/bolt/board.c b/board/bolt/board.c
index 0bf1271253..3ed0443d18 100644
--- a/board/bolt/board.c
+++ b/board/bolt/board.c
@@ -203,11 +203,9 @@ BUILD_ASSERT(ARRAY_SIZE(fans) == CONFIG_FANS);
/* I2C ports */
const struct i2c_port_t i2c_ports[] = {
- /* Note: battery and charger share a port. Only include it once in
- * this list so we don't double-initialize it. */
- {"batt_chg", I2C_PORT_BATTERY, 100},
- {"lightbar", I2C_PORT_LIGHTBAR, 400},
- {"thermal", I2C_PORT_THERMAL, 100},
+ {"batt_chg", 0, 100},
+ {"lightbar", 1, 400},
+ {"thermal", 5, 100},
};
const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
diff --git a/board/falco/board.c b/board/falco/board.c
index 5d90ef3aa6..3b50447802 100644
--- a/board/falco/board.c
+++ b/board/falco/board.c
@@ -202,11 +202,9 @@ BUILD_ASSERT(ARRAY_SIZE(fans) == CONFIG_FANS);
/* I2C ports */
const struct i2c_port_t i2c_ports[] = {
- /* Note: battery and charger share a port. Only include it once in
- * this list so we don't double-initialize it. */
- {"batt_chg", I2C_PORT_BATTERY, 100},
- {"lvds", I2C_PORT_LVDS, 100},
- {"thermal", I2C_PORT_THERMAL, 100},
+ {"batt_chg", 0, 100},
+ {"lvds", 1, 100},
+ {"thermal", 5, 100},
};
const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
diff --git a/board/link/board.c b/board/link/board.c
index 0012a7bf7e..60b654c2b0 100644
--- a/board/link/board.c
+++ b/board/link/board.c
@@ -202,11 +202,9 @@ BUILD_ASSERT(ARRAY_SIZE(fans) == CONFIG_FANS);
/* I2C ports */
const struct i2c_port_t i2c_ports[] = {
- /* Note: battery and charger share a port. Only include it once in
- * this list so we don't double-initialize it. */
- {"batt_chg", I2C_PORT_BATTERY, 100},
- {"lightbar", I2C_PORT_LIGHTBAR, 400},
- {"thermal", I2C_PORT_THERMAL, 100},
+ {"batt_chg", 0, 100},
+ {"lightbar", 1, 400},
+ {"thermal", 5, 100},
};
const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
diff --git a/board/peppy/board.c b/board/peppy/board.c
index e6205e521b..11f4e44f5d 100644
--- a/board/peppy/board.c
+++ b/board/peppy/board.c
@@ -196,10 +196,8 @@ BUILD_ASSERT(ARRAY_SIZE(fans) == CONFIG_FANS);
/* I2C ports */
const struct i2c_port_t i2c_ports[] = {
- /* Note: battery and charger share a port. Only include it once in
- * this list so we don't double-initialize it. */
- {"batt_chg", I2C_PORT_BATTERY, 100},
- {"thermal", I2C_PORT_THERMAL, 100},
+ {"batt_chg", 0, 100},
+ {"thermal", 5, 100},
};
const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
diff --git a/board/rambi/board.c b/board/rambi/board.c
index d20229ec5c..b1856b0d3a 100644
--- a/board/rambi/board.c
+++ b/board/rambi/board.c
@@ -173,10 +173,8 @@ BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT);
/* I2C ports */
const struct i2c_port_t i2c_ports[] = {
- /* Note: battery and charger share a port. Only include it once in
- * this list so we don't double-initialize it. */
- {"batt_chg", I2C_PORT_BATTERY, 100},
- {"thermal", I2C_PORT_THERMAL, 100},
+ {"batt_chg", 0, 100},
+ {"thermal", 5, 100},
};
const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
diff --git a/board/samus/board.c b/board/samus/board.c
index d7f5b58e5f..74cc3bda07 100644
--- a/board/samus/board.c
+++ b/board/samus/board.c
@@ -219,11 +219,9 @@ BUILD_ASSERT(ARRAY_SIZE(fans) == CONFIG_FANS);
/* I2C ports */
const struct i2c_port_t i2c_ports[] = {
- /* Note: battery and charger share a port. Only include it once in
- * this list so we don't double-initialize it. */
- {"batt_chg", I2C_PORT_BATTERY, 100},
- {"lightbar", I2C_PORT_LIGHTBAR, 400},
- {"thermal", I2C_PORT_THERMAL, 100},
+ {"batt_chg", 0, 100},
+ {"lightbar", 1, 400},
+ {"thermal", 5, 100},
};
const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
diff --git a/board/slippy/board.c b/board/slippy/board.c
index 25ecb016aa..9a1fc697ed 100644
--- a/board/slippy/board.c
+++ b/board/slippy/board.c
@@ -194,10 +194,8 @@ BUILD_ASSERT(ARRAY_SIZE(fans) == CONFIG_FANS);
/* I2C ports */
const struct i2c_port_t i2c_ports[] = {
- /* Note: battery and charger share a port. Only include it once in
- * this list so we don't double-initialize it. */
- {"batt_chg", I2C_PORT_BATTERY, 100},
- {"thermal", I2C_PORT_THERMAL, 100},
+ {"batt_chg", 0, 100},
+ {"thermal", 5, 100},
};
const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);