Searched full:sync_scale (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/drivers/iio/imu/ |
H A D | adis16480.c | 347 * the input clock. Hence, calculating the sync_scale dynamically gives us better in adis16480_set_freq() 351 * 3. The last result becomes the IMU sample rate. Use that to calculate SYNC_SCALE in adis16480_set_freq() 356 int sync_scale; in adis16480_set_freq() local 381 sync_scale = scaled_rate / st->clk_freq; in adis16480_set_freq() 382 ret = __adis_write_reg_16(&st->adis, ADIS16495_REG_SYNC_SCALE, sync_scale); in adis16480_set_freq() 412 u16 sync_scale; in adis16480_get_freq() local 414 ret = __adis_read_reg_16(&st->adis, ADIS16495_REG_SYNC_SCALE, &sync_scale); in adis16480_get_freq() 418 sample_rate = st->clk_freq * sync_scale; in adis16480_get_freq() 1456 u16 sync_scale; in adis16480_probe() local 1459 * In PPS mode, the IMU sample rate is the clk_freq * sync_scale. Hence, in adis16480_probe() [all …]
|
H A D | adis16475.c | 266 u16 sync_scale; in adis16475_get_freq() local 268 ret = __adis_read_reg_16(&st->adis, ADIS16475_REG_UP_SCALE, &sync_scale); in adis16475_get_freq() 272 sample_rate = st->clk_freq * sync_scale; in adis16475_get_freq() 304 * the input clock. Hence, calculating the sync_scale dynamically gives us better in adis16475_set_freq() 308 * 3. The last result becomes the IMU sample rate. Use that to calculate SYNC_SCALE in adis16475_set_freq() 313 int sync_scale; in adis16475_set_freq() local 338 sync_scale = scaled_rate / st->clk_freq; in adis16475_set_freq() 339 ret = __adis_write_reg_16(&st->adis, ADIS16475_REG_UP_SCALE, sync_scale); in adis16475_set_freq() 1168 * In sync scaled mode, the IMU sample rate is the clk_freq * sync_scale. in adis16475_config_sync_mode()
|
/openbmc/linux/Documentation/devicetree/bindings/iio/imu/ |
H A D | adi,adis16480.yaml | 71 frequency and the scale factor in the SYNC_SCALE register, see
|