summaryrefslogtreecommitdiffstats
path: root/board/freescale/mpc8536ds
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2010-04-20 10:21:25 -0500
committerKumar Gala <galak@kernel.crashing.org>2010-05-12 04:53:51 -0500
commitf54fe87acedbbad7d29ad18cab31d2b323717514 (patch)
tree7b7d9c080a2a160733bd7528ac77733bc0ea0ae9 /board/freescale/mpc8536ds
parent54648985e2a64e29784e3ed37cd45b637305cd65 (diff)
downloadblackbird-obmc-uboot-f54fe87acedbbad7d29ad18cab31d2b323717514.tar.gz
blackbird-obmc-uboot-f54fe87acedbbad7d29ad18cab31d2b323717514.zip
85xx/fsl-sata: Use is_serdes_configured() to determine if SATA is enabled
On the MPC85xx platform if we have SATA its connected on SERDES. Determing if SATA is enabled via sata_initialize should not be board specific and thus we move it out of the MPC8536DS board code. Additionally, now that we have is_serdes_configured() we can determine if the given SATA port is enabled and error out if its not in the driver. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/freescale/mpc8536ds')
-rw-r--r--board/freescale/mpc8536ds/mpc8536ds.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/board/freescale/mpc8536ds/mpc8536ds.c b/board/freescale/mpc8536ds/mpc8536ds.c
index 8daa0c359a..1968106711 100644
--- a/board/freescale/mpc8536ds/mpc8536ds.c
+++ b/board/freescale/mpc8536ds/mpc8536ds.c
@@ -498,17 +498,6 @@ get_board_ddr_clk(ulong dummy)
}
#endif
-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 1;
-
- return __sata_initialize();
-}
-
int board_eth_init(bd_t *bis)
{
#ifdef CONFIG_TSEC_ENET
OpenPOWER on IntegriCloud