CHROMIUM: iio: cros_ec: Workaround for invalid gyro min_freq
Until CL:674003, EC indicates the minimal frequency of BMI160 gyro to be
25mHz (AKA 0.025Hz) instead of 25Hz.
To prevent CTS testGyroscope_5hz and testGyroscope_10hz to expect gyro
to work at frequencies less than 25Hz, force the gyro minimal frequency
at 25Hz when absurdly low.
TEST=On Eve, check gyro min_frequency is 25Hz instead of 25mHz.
Check other frequencies are correct.
Signed-off-by: Gwendal Grignou <email@example.com>
Reviewed-by: Douglas Anderson <firstname.lastname@example.org>
Reviewed-by: Nick Vaccaro <email@example.com>
Reviewed-by: Nick Vaccaro <firstname.lastname@example.org>
2 files changed