X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fsunxi%2Fahci.c;h=522e54ab160e1c576c3beecf5beb773636b775d8;hb=f7536f798d99e77b543c7913dc45edbb77848078;hp=b7f0dda2058eecf97547270a2feac54565b5d7b1;hpb=878cd63e02f63f245182a101807186b44e20f116;p=u-boot diff --git a/board/sunxi/ahci.c b/board/sunxi/ahci.c index b7f0dda205..522e54ab16 100644 --- a/board/sunxi/ahci.c +++ b/board/sunxi/ahci.c @@ -72,16 +72,8 @@ static int sunxi_ahci_phy_init(u32 base) 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) return; - ahci_init(SUNXI_SATA_BASE); + ahci_init((void __iomem *)SUNXI_SATA_BASE); }