]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/sunxi/ahci.c
ppc4xx: Remove sc3 board
[karo-tx-uboot.git] / board / sunxi / ahci.c
index 5e123285b03d2d8a8fb29b6c2712d11bf4fa1df5..6d51b9b8e95b81ce6b84e1a982ce699b816a16de 100644 (file)
@@ -76,10 +76,12 @@ void scsi_init(void)
 #ifdef CONFIG_SATAPWR
        gpio_request(CONFIG_SATAPWR, "satapwr");
        gpio_direction_output(CONFIG_SATAPWR, 1);
+       /* Give attached sata device time to power-up to avoid link timeouts */
+       mdelay(500);
 #endif
 
        if (sunxi_ahci_phy_init(SUNXI_SATA_BASE) < 0)
                return;
 
-       ahci_init(SUNXI_SATA_BASE);
+       ahci_init((void __iomem *)SUNXI_SATA_BASE);
 }