* [PATCH] ata: sata-imx: Add delay to prevent link timeout
@ 2015-07-23 13:19 Sascha Hauer
0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2015-07-23 13:19 UTC (permalink / raw)
To: Barebox List
On the Utilite board this delay is necessary to prevent a link timeout.
It seems the values written to GPR13 have to settle for some time before
further accesses may be made.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
drivers/ata/sata-imx.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/ata/sata-imx.c b/drivers/ata/sata-imx.c
index 42a56dc..612762e 100644
--- a/drivers/ata/sata-imx.c
+++ b/drivers/ata/sata-imx.c
@@ -37,6 +37,8 @@ static int imx6_sata_init(struct imx_ahci *imx_ahci)
writel(val, base + IOMUXC_GPR13);
writel(val | 2, base + IOMUXC_GPR13);
+ udelay(100);
+
return 0;
}
--
2.1.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-07-23 13:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-23 13:19 [PATCH] ata: sata-imx: Add delay to prevent link timeout Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox