mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-29 14:41:26 +01:00
ARM: imx: cm_fx6: remove sata init code from board file
Commit 5248930ebf48 ("dm: imx: cm_fx6: Enable more driver model support")
enabled driver model support for AHCI. Remove the old, now unused, sata
init code from the board file.
Signed-off-by: Christopher Spinrath <christopher.spinrath@rwth-aachen.de>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
d54f1fc5de
commit
56b801c5d3
@ -210,48 +210,6 @@ static int cm_fx6_setup_issd(void)
|
|||||||
|
|
||||||
#define CM_FX6_SATA_INIT_RETRIES 10
|
#define CM_FX6_SATA_INIT_RETRIES 10
|
||||||
|
|
||||||
# if !CONFIG_IS_ENABLED(AHCI)
|
|
||||||
int sata_initialize(void)
|
|
||||||
{
|
|
||||||
int err, i;
|
|
||||||
|
|
||||||
/* Make sure this gpio has logical 0 value */
|
|
||||||
gpio_direction_output(CM_FX6_SATA_PWLOSS_INT, 0);
|
|
||||||
udelay(100);
|
|
||||||
cm_fx6_sata_power(1);
|
|
||||||
|
|
||||||
for (i = 0; i < CM_FX6_SATA_INIT_RETRIES; i++) {
|
|
||||||
err = setup_sata();
|
|
||||||
if (err) {
|
|
||||||
printf("SATA setup failed: %d\n", err);
|
|
||||||
return err;
|
|
||||||
}
|
|
||||||
|
|
||||||
udelay(100);
|
|
||||||
|
|
||||||
err = __sata_initialize();
|
|
||||||
if (!err)
|
|
||||||
break;
|
|
||||||
|
|
||||||
/* There is no device on the SATA port */
|
|
||||||
if (sata_port_status(0, 0) == 0)
|
|
||||||
break;
|
|
||||||
|
|
||||||
/* There's a device, but link not established. Retry */
|
|
||||||
}
|
|
||||||
|
|
||||||
return err;
|
|
||||||
}
|
|
||||||
|
|
||||||
int sata_stop(void)
|
|
||||||
{
|
|
||||||
__sata_stop();
|
|
||||||
cm_fx6_sata_power(0);
|
|
||||||
mdelay(250);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
static int cm_fx6_setup_issd(void) { return 0; }
|
static int cm_fx6_setup_issd(void) { return 0; }
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user