diff options
author | Maxime Chevallier <maxime.chevallier@smile.fr> | 2017-11-27 15:16:32 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-11-27 15:23:30 +0000 |
commit | 251c201bf4f8b5bf4f1ccb4f8920eed2e1f57580 (patch) | |
tree | 434c3ee288b76e5343c08b527e5958080bb84eef /include | |
parent | 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 (diff) | |
download | lwn-251c201bf4f8b5bf4f1ccb4f8920eed2e1f57580.tar.gz lwn-251c201bf4f8b5bf4f1ccb4f8920eed2e1f57580.zip |
spi: a3700: Fix clk prescaling for coefficient over 15
The Armada 3700 SPI controller has 2 ranges of prescaler coefficients.
One ranging from 0 to 15 by steps of 1, and one ranging from 0 to 30 by
steps of 2.
This commit fixes the prescaler coefficients that are over 15 so that it
uses the correct range of values. The prescaling coefficient is rounded
to the upper value if it is odd.
This was tested on Espressobin with spidev and a locigal analyser.
Signed-off-by: Maxime Chevallier <maxime.chevallier@smile.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions