[PATCH] ata: sata-imx: Add delay to prevent link timeout

Sascha Hauer s.hauer at pengutronix.de
Thu Jul 23 06:19:38 PDT 2015


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 at 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




More information about the barebox mailing list