]> git.sur5r.net Git - u-boot/blobdiff - board/sunxi/ahci.c
sunxi: video: Add support for LCD panels which need to be configured via i2c
[u-boot] / board / sunxi / ahci.c
index 0c262eabb754785ca4a53064e47af53feee1d820..b7f0dda2058eecf97547270a2feac54565b5d7b1 100644 (file)
@@ -74,7 +74,10 @@ void scsi_init(void)
 {
        printf("SUNXI SCSI INIT\n");
 #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)