]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
tegra: spi: Wait a little after setting the clocks
authorSimon Glass <sjg@chromium.org>
Wed, 31 May 2017 23:57:18 +0000 (17:57 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 9 Jun 2017 19:39:33 +0000 (13:39 -0600)
For devices that need a delay between SPI transactions we seem to need an
additional delay before the first one if the CPU is running at full speed.
Add this, under control of the existing setting. At present it will only
be enabled with the Chrome OS EC.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/spi/tegra114_spi.c

index 802117eb49f1fb80551fe05e52588cde099fe2e6..91659349a3dbd90df2df72b748957dac2795c62c 100644 (file)
@@ -152,6 +152,7 @@ static int tegra114_spi_probe(struct udevice *bus)
                               bus->name, priv->freq, rate);
                }
        }
+       udelay(plat->deactivate_delay_us);
 
        /* Clear stale status here */
        setbits_le32(&regs->fifo_status,