spi: davinci: Choose correct pre-scaler limit based on SOC
authorFranklin S Cooper Jr <fcooper@ti.com>
Wed, 22 Jul 2015 12:32:22 +0000 (07:32 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 24 Jul 2015 16:35:51 +0000 (17:35 +0100)
Currently the pre-scaler limit is incorrect. The value differs slightly
for various devices so a single value can't be used. Using the compatible
field select the correct pre-scaler limit.

Add new compatible field value for Keystone devices to support their
unique pre-scaler limit value.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Reviewed-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/spi/spi-davinci.txt
drivers/spi/spi-davinci.c
include/linux/platform_data/spi-davinci.h

index 12ecfe9..d1e914a 100644 (file)
@@ -12,6 +12,8 @@ Required properties:
 - compatible:
        - "ti,dm6441-spi" for SPI used similar to that on DM644x SoC family
        - "ti,da830-spi" for SPI used similar to that on DA8xx SoC family
+       - "ti,keystone-spi" for SPI used similar to that on Keystone2 SoC
+               family
 - reg: Offset and length of SPI controller register space
 - num-cs: Number of chip selects. This includes internal as well as
        GPIO chip selects.
Simple merge