diff options
| author | Fabrice Gasnier <fabrice.gasnier@st.com> | 2019-03-21 17:47:22 +0100 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-04-04 20:20:32 +0100 |
| commit | 2e19ba661ece580b23115f7eff1e5fad25317172 (patch) | |
| tree | 69286b366246f5ff954eabc6f47eea1b9c2bf389 /tools/perf/scripts/python/bin | |
| parent | staging: iio: ad5933: change attributes to match ABI (diff) | |
| download | linux-2e19ba661ece580b23115f7eff1e5fad25317172.tar.gz linux-2e19ba661ece580b23115f7eff1e5fad25317172.zip | |
iio: adc: stm32-dfsdm: make spi_master_freq more accurate
Current ckout divider may be set to a value that makes ckout to exceed
spi-max-frequency. Rather use lower value (e.g. round up divider when
ckout isn't accurate).
Also when the SPI clock isn't accurate, 'spi_master_freq' is filled in
with expected frequency. Use computed value instead to be more accurate:
- e.g. source clock / (CKOUTDIV + 1)
Enforce checks on the divider: ckoutdiv range can be from 1-255 to provide
divider of 2-256.
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
