spi: sh-msiof: Limit minimum divider on R-Car Gen3
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 12 Jul 2017 10:26:01 +0000 (12:26 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 17 Jul 2017 11:09:59 +0000 (12:09 +0100)
commit61a8dec502b873879fa240ec7614601523b46a43
tree74b5d8eddd0b48ac4b101fe91224986ed2360764
parent3d108f1e2d4c21026750cd4107e03b3e7a3e98a0
spi: sh-msiof: Limit minimum divider on R-Car Gen3

On R-Car Gen3 SoCs (excluding R-Car H3 ES1.x, which cannot be used for
SPI due to a hardware erratum), BRPS x BRDV = 1/1 is an invalid divider
setting.
Implement this limitation using an SoC/family-specific minimum divider.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sh-msiof.c