summaryrefslogtreecommitdiff
path: root/board/freescale/mpc8536ds/mpc8536ds.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-01-27 16:12:21 -0500
committerWolfgang Denk <wd@denx.de>2009-01-27 23:42:39 +0100
commitcf7e399fb35b3aea90a27d1df72f45f5d6156204 (patch)
tree63add98351b9cef8c16b0a8f6d293ca3b3db3fdd /board/freescale/mpc8536ds/mpc8536ds.c
parent50970839712dda35399e2fa83fe818df9354d618 (diff)
downloadu-boot-imx-cf7e399fb35b3aea90a27d1df72f45f5d6156204.zip
u-boot-imx-cf7e399fb35b3aea90a27d1df72f45f5d6156204.tar.gz
u-boot-imx-cf7e399fb35b3aea90a27d1df72f45f5d6156204.tar.bz2
SATA: do not auto-initialize during boot
Rather than have the board code initialize SATA automatically during boot, make the user manually run "sata init". This brings the SATA subsystem in line with common U-Boot policy. Rather than having a dedicated weak function "is_sata_supported", people can override sata_initialize() to do their weird board stuff. Then they can call the actual __sata_initialize(). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'board/freescale/mpc8536ds/mpc8536ds.c')
-rw-r--r--board/freescale/mpc8536ds/mpc8536ds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/freescale/mpc8536ds/mpc8536ds.c b/board/freescale/mpc8536ds/mpc8536ds.c
index 1e2e2dc..1e2e4e6 100644
--- a/board/freescale/mpc8536ds/mpc8536ds.c
+++ b/board/freescale/mpc8536ds/mpc8536ds.c
@@ -582,15 +582,15 @@ get_board_ddr_clk(ulong dummy)
}
#endif
-int is_sata_supported(void)
+int sata_initialize(void)
{
volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
uint sdrs2_io_sel =
(gur->pordevsr & MPC85xx_PORDEVSR_SRDS2_IO_SEL) >> 27;
if (sdrs2_io_sel & 0x04)
- return 0;
+ return 1;
- return 1;
+ return __sata_initialize();
}
int board_eth_init(bd_t *bis)