diff options
author | Sean Rhodes <sean@starlabs.systems> | 2024-01-23 15:10:59 +0000 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-02-21 19:56:56 +0000 |
commit | bba6a21625a744899581364a627e3ffd6d6cda5b (patch) | |
tree | 59a3efcba7eabd3929e257d23e1fafd127ba4df7 /src/cpu/intel/socket_m | |
parent | 7ae2e2840d57060a27859086a076087389e39b77 (diff) |
i2c/drivers/generic: Add support for including a rotation matrix
The Rotation Matrix allows the specification of 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 interpret
the data from the device correctly. It is used by various drivers,
mainly in `iio/accel`.
It was tested on Ubuntu, by rotating the device and verifying the
orientation was correct.
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Change-Id: Id4a940d999a0e300a6fe21269f18bab6e3c0523c
Reviewed-on: https://review.coreboot.org/c/coreboot/+/80179
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/cpu/intel/socket_m')
0 files changed, 0 insertions, 0 deletions