summaryrefslogtreecommitdiffstats
path: root/src/drivers/i2c/generic/chip.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/i2c/generic/chip.h')
-rw-r--r--src/drivers/i2c/generic/chip.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/drivers/i2c/generic/chip.h b/src/drivers/i2c/generic/chip.h
index 8e13ffc7bb85..227cb61e1811 100644
--- a/src/drivers/i2c/generic/chip.h
+++ b/src/drivers/i2c/generic/chip.h
@@ -69,6 +69,19 @@ struct drivers_i2c_generic_config {
/* Delay to be inserted after enabling stop. */
unsigned int stop_off_delay_ms;
+ /*
+ * The Rotation Matrix' allows specifying a 3x3 matrix representing
+ * the orientation of devices, such as accelerometers. Each value in
+ * the matrix can be one of -1, 0, or 1, indicating the transformation
+ * applied to the device's axes.
+ *
+ * It is expected by linux and required for the OS to correctly interpret
+ * the data from the device.
+ */
+ bool has_rotation_matrix;
+ int rotation_matrix[9];
+
+
/* Generic properties for exporting device-specific data to the OS */
struct acpi_dp property_list[MAX_GENERIC_PROPERTY_LIST];
int property_count;