From: Simon Glass Date: Wed, 31 May 2017 23:57:18 +0000 (-0600) Subject: tegra: spi: Wait a little after setting the clocks X-Git-Tag: v2017.07-rc2~54^2~21 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4a7b9ee15ee0c5aa38bce0e32263fbb11572b475;p=u-boot tegra: spi: Wait a little after setting the clocks 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 --- diff --git a/drivers/spi/tegra114_spi.c b/drivers/spi/tegra114_spi.c index 802117eb49..91659349a3 100644 --- a/drivers/spi/tegra114_spi.c +++ b/drivers/spi/tegra114_spi.c @@ -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(®s->fifo_status,