spi: rspi: Increase accuracy of bit rate for RZ
authorChris Brandt <chris.brandt@renesas.com>
Fri, 5 Aug 2016 13:36:03 +0000 (09:36 -0400)
committerMark Brown <broonie@kernel.org>
Mon, 8 Aug 2016 10:56:46 +0000 (11:56 +0100)
commitaeb8f8cb1537450e99f7d8f1a1d84d55b0fc6b26
tree064b5eb030780ba3eed459949fcceeeb490f32b5
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
spi: rspi: Increase accuracy of bit rate for RZ

When you leave the clock divider at 0, 130kHz is the lowest you can go.
Also, by adjusting the clock divider you can get more accurate resolutions
for clock speeds lower than 16MHz. This patch uses the clock divider as
part of the bit rate setup.

Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rspi.c