ARM: davinci: Set proper SPI prescale limit value
authorFranklin S Cooper Jr <fcooper@ti.com>
Wed, 12 Aug 2015 13:26:19 +0000 (08:26 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 14 Aug 2015 19:34:47 +0000 (20:34 +0100)
SPI Davinci driver has been updated to allow SOCs to specify their minimum
prescale value. Update the various SOCs board files that use this driver with
their proper prescaler limit.

Acked-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
arch/arm/mach-davinci/devices-da8xx.c
arch/arm/mach-davinci/dm355.c
arch/arm/mach-davinci/dm365.c

index ddfdd820e6f2b99f6bfa80a51a287255794d74d5..29e08aac8294aa06233b916c130aa0740a6d897f 100644 (file)
@@ -1010,11 +1010,13 @@ static struct davinci_spi_platform_data da8xx_spi_pdata[] = {
                .version        = SPI_VERSION_2,
                .intr_line      = 1,
                .dma_event_q    = EVENTQ_0,
+               .prescaler_limit = 2,
        },
        [1] = {
                .version        = SPI_VERSION_2,
                .intr_line      = 1,
                .dma_event_q    = EVENTQ_0,
+               .prescaler_limit = 2,
        },
 };
 
index 9cbeda798584d236bfbc9db0f6b4abbc2d420b90..567dc56fe8cded405dc05dffb01605cc0316d9dd 100644 (file)
@@ -411,6 +411,7 @@ static struct davinci_spi_platform_data dm355_spi0_pdata = {
        .num_chipselect = 2,
        .cshold_bug     = true,
        .dma_event_q    = EVENTQ_1,
+       .prescaler_limit = 1,
 };
 static struct platform_device dm355_spi0_device = {
        .name = "spi_davinci",
index e3a3c54b6832e4bf35410564411e5235cb54c566..6a890a8486d0032462490144065e8c6e140b8833 100644 (file)
@@ -646,6 +646,7 @@ static struct davinci_spi_platform_data dm365_spi0_pdata = {
        .version        = SPI_VERSION_1,
        .num_chipselect = 2,
        .dma_event_q    = EVENTQ_3,
+       .prescaler_limit = 1,
 };
 
 static struct resource dm365_spi0_resources[] = {