spi: tegra: Increase delay between CS and clock start
Greg Meiste [Thu, 30 Sep 2010 16:40:22 +0000 (11:40 -0500)]
Some SPI devices require a delay between the CS and when the clock
starts.  Increase SS_SETUP to accommodate these devices.

Change-Id: I301e3583e70c722cadde5a9f91119881805dd3a5
Signed-off-by: Greg Meiste <w30289@motorola.com>

drivers/spi/spi-tegra.c

index aa25ed7..b268583 100644 (file)
@@ -274,6 +274,7 @@ static void spi_tegra_start_transfer(struct spi_device *spi,
                val |= SLINK_TXEN;
        val |= SLINK_SS_EN_CS(spi->chip_select);
        val |= SLINK_SPIE;
+       val |= SLINK_SS_SETUP(3);
        spi_tegra_writel(tspi, val, SLINK_COMMAND2);
 
        val = spi_tegra_readl(tspi, SLINK_COMMAND);