mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
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>
This commit is contained in:
parent
d957c28a7e
commit
9cad354425
1 changed files with 9 additions and 3 deletions
|
@ -98,9 +98,6 @@ int sata_initialize(void)
|
||||||
/* Make sure this gpio has logical 0 value */
|
/* Make sure this gpio has logical 0 value */
|
||||||
gpio_direction_output(CM_FX6_SATA_PWLOSS_INT, 0);
|
gpio_direction_output(CM_FX6_SATA_PWLOSS_INT, 0);
|
||||||
udelay(100);
|
udelay(100);
|
||||||
|
|
||||||
cm_fx6_sata_power(0);
|
|
||||||
mdelay(250);
|
|
||||||
cm_fx6_sata_power(1);
|
cm_fx6_sata_power(1);
|
||||||
|
|
||||||
for (i = 0; i < CM_FX6_SATA_INIT_RETRIES; i++) {
|
for (i = 0; i < CM_FX6_SATA_INIT_RETRIES; i++) {
|
||||||
|
@ -125,6 +122,15 @@ int sata_initialize(void)
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int sata_stop(void)
|
||||||
|
{
|
||||||
|
__sata_stop();
|
||||||
|
cm_fx6_sata_power(0);
|
||||||
|
mdelay(250);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
static int cm_fx6_setup_issd(void) { return 0; }
|
static int cm_fx6_setup_issd(void) { return 0; }
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue