Commit 9cad35442559634324109576dfdaf2f43b546efd

Authored by Nikita Kiryanov
Committed by Stefano Babic
1 parent d957c28a7e

arm: mx6: cm_fx6: implement board specific sata stop

Provide board specific implementation for sata stop command for
cm_fx6.

Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
Cc: Stefano Babic <sbabic@denx.de>

Showing 1 changed file with 9 additions and 3 deletions Side-by-side Diff

board/compulab/cm_fx6/cm_fx6.c
... ... @@ -98,9 +98,6 @@
98 98 /* Make sure this gpio has logical 0 value */
99 99 gpio_direction_output(CM_FX6_SATA_PWLOSS_INT, 0);
100 100 udelay(100);
101   -
102   - cm_fx6_sata_power(0);
103   - mdelay(250);
104 101 cm_fx6_sata_power(1);
105 102  
106 103 for (i = 0; i < CM_FX6_SATA_INIT_RETRIES; i++) {
... ... @@ -124,6 +121,15 @@
124 121 }
125 122  
126 123 return err;
  124 +}
  125 +
  126 +int sata_stop(void)
  127 +{
  128 + __sata_stop();
  129 + cm_fx6_sata_power(0);
  130 + mdelay(250);
  131 +
  132 + return 0;
127 133 }
128 134 #else
129 135 static int cm_fx6_setup_issd(void) { return 0; }