summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-07-20 11:38:18 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-07-31 08:49:43 +0200
commite871a2de75a0a1266fdede7701518d0ef9763004 (patch)
tree8358258607d04d0a0ce70b3215c88d2c3a4937be /drivers/ata
parent459c7f3213ab0698cac25f591b7803cfb71d588e (diff)
downloadbarebox-e871a2de75a0a1266fdede7701518d0ef9763004.tar.gz
barebox-e871a2de75a0a1266fdede7701518d0ef9763004.tar.xz
ata: sata-imx: Add delay to prevent link timeout
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>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/sata-imx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ata/sata-imx.c b/drivers/ata/sata-imx.c
index 42a56dcc8b..612762e229 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;
}