summaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-31 23:57:18 (GMT)
committerSimon Glass <sjg@chromium.org>2017-06-09 19:39:33 (GMT)
commit4a7b9ee15ee0c5aa38bce0e32263fbb11572b475 (patch)
treece1a8c19672e8ed2accb1e88e7c3c5370cb672f3 /drivers/spi
parentc415dda8df1134ba60ff031110649ca4e2735174 (diff)
downloadu-boot-fsl-qoriq-4a7b9ee15ee0c5aa38bce0e32263fbb11572b475.tar.xz
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 <sjg@chromium.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/tegra114_spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/tegra114_spi.c b/drivers/spi/tegra114_spi.c
index 802117e..9165934 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(&regs->fifo_status,