spi: img-spfi: check for max speed supported by the spfi block
authorSifan Naeem <sifan.naeem@imgtec.com>
Thu, 18 Jun 2015 12:27:12 +0000 (13:27 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 7 Jul 2015 11:56:36 +0000 (12:56 +0100)
commit93e3a9e9993ef018522b7005d97d8124b7e73385
tree49d514d05357faffd6c64e54757e59da536d06d3
parentd770e558e21961ad6cfdf0ff7df0eb5d7d4f0754
spi: img-spfi: check for max speed supported by the spfi block

Maximum speed supported by spfi is limited to 1/4 of the spfi clock.

But in some SoCs the maximum speed supported by the spfi block can
be limited to less than 1/4 of the spfi clock. In such cases we have
to define the limit in the device tree so that the driver can pick
it up.

Signed-off-by: Sifan Naeem <sifan.naeem@imgtec.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/spi/spi-img-spfi.txt
drivers/spi/spi-img-spfi.c