]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/compulab/cm_fx6/cm_fx6.c
Merge git://git.denx.de/u-boot-fdt
[karo-tx-uboot.git] / board / compulab / cm_fx6 / cm_fx6.c
index 180e7779d7c3aaa6b40050e18d4971094508836b..84e36439fa18ddf10040043f63abd2fba478562f 100644 (file)
@@ -98,9 +98,6 @@ int sata_initialize(void)
        /* Make sure this gpio has logical 0 value */
        gpio_direction_output(CM_FX6_SATA_PWLOSS_INT, 0);
        udelay(100);
-
-       cm_fx6_sata_power(0);
-       mdelay(250);
        cm_fx6_sata_power(1);
 
        for (i = 0; i < CM_FX6_SATA_INIT_RETRIES; i++) {
@@ -125,6 +122,15 @@ int sata_initialize(void)
 
        return err;
 }
+
+int sata_stop(void)
+{
+       __sata_stop();
+       cm_fx6_sata_power(0);
+       mdelay(250);
+
+       return 0;
+}
 #else
 static int cm_fx6_setup_issd(void) { return 0; }
 #endif