drivers/i2c: sx9310: fix overridetree.cb
An error in script did not set the attribute properly:
- Entry CS0 is not used as sensor, but as ground,
- Entry CS1 is used as the startup sensor.
This fixes a regression caused by commit
689c25b9d6 (drivers/i2c: sx9310: Replace register map with descriptive names)
EQ=b:173341604
BRANCH=volteer
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Change-Id: I92c01209031e9a917d95b1cb2537b0ce7b93e66d
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51893
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/src/mainboard/google/volteer/variants/malefor/overridetree.cb b/src/mainboard/google/volteer/variants/malefor/overridetree.cb
index 0d25df8..f1f86b9 100644
--- a/src/mainboard/google/volteer/variants/malefor/overridetree.cb
+++ b/src/mainboard/google/volteer/variants/malefor/overridetree.cb
@@ -69,13 +69,12 @@
register "speed" = "I2C_SPEED_FAST"
register "uid" = "0"
register "cs0_ground" = "0x0"
- register "combined_sensors_count" = "3"
- register "combined_sensors[0]" = "0"
- register "combined_sensors[1]" = "1"
- register "combined_sensors[2]" = "2"
+ register "combined_sensors_count" = "2"
+ register "combined_sensors[0]" = "1"
+ register "combined_sensors[1]" = "2"
register "resolution" = "SX9310_FINEST"
register "avg_pos_strength" = "512"
- register "startup_sensor" = "0"
+ register "startup_sensor" = "1"
register "proxraw_strength" = "0"
device i2c 28 on end
end