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.

Change-Id: I18df3fe6d5c659a59af6d13f484c92e1649eeb26
Signed-off-by: Gwendal Grignou <>
Reviewed-by: Douglas Anderson <>
Reviewed-by: Nick Vaccaro <>
Reviewed-by: Nick Vaccaro <>
2 files changed