summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorNikita Kiryanov <nikita@compulab.co.il>2014-11-21 12:47:25 +0200
committerStefano Babic <sbabic@denx.de>2014-11-24 12:00:00 +0100
commit9cad35442559634324109576dfdaf2f43b546efd (patch)
tree7235bff2b635f875938beb88402c889a54e0c4de /board
parentd957c28a7eb0e5a28e9541a64ab3536831d63ec5 (diff)
downloadu-boot-imx-9cad35442559634324109576dfdaf2f43b546efd.zip
u-boot-imx-9cad35442559634324109576dfdaf2f43b546efd.tar.gz
u-boot-imx-9cad35442559634324109576dfdaf2f43b546efd.tar.bz2
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>
Diffstat (limited to 'board')
-rw-r--r--board/compulab/cm_fx6/cm_fx6.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/board/compulab/cm_fx6/cm_fx6.c b/board/compulab/cm_fx6/cm_fx6.c
index 0206ae8..09e285b 100644
--- a/board/compulab/cm_fx6/cm_fx6.c
+++ b/board/compulab/cm_fx6/cm_fx6.c
@@ -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