From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Mon, 22 May 2017 05:17:27 -0600 Subject: [U-Boot] [PATCH 07/12] tegra: spi: Wait a little after setting the clocks In-Reply-To: <20170522111732.11265-1-sjg@chromium.org> References: <20170522111732.11265-1-sjg@chromium.org> Message-ID: <20170522111732.11265-8-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- drivers/spi/tegra114_spi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/tegra114_spi.c b/drivers/spi/tegra114_spi.c index 013bc82380..04b4fce061 100644 --- a/drivers/spi/tegra114_spi.c +++ b/drivers/spi/tegra114_spi.c @@ -149,6 +149,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, -- 2.13.0.303.g4ebf302169-goog