spi: a3700: Set frequency limits at startup
authorMaxime Chevallier <maxime.chevallier@smile.fr>
Wed, 17 Jan 2018 16:15:26 +0000 (17:15 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 18 Jan 2018 10:59:18 +0000 (10:59 +0000)
commitabf3a49e50967bd67cff67f289690f76436f461f
treedfd0f18eefb8fe3708b235b528f23bce58504585
parent44a5f423e70374e5b42cecd85e78f2d79334e0f2
spi: a3700: Set frequency limits at startup

Armada 3700 SPI controller has an internal clock divider which can
divide the parent clock frequency by up to 30.

This patch sets the limits in the spi_controller fields so that we can
detect when a non-supported frequency is requested by a device for a
transfer.

Signed-off-by: Maxime Chevallier <maxime.chevallier@smile.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-armada-3700.c