]> git.sur5r.net Git - u-boot/blobdiff - board/freescale/mpc8536ds/mpc8536ds.c
Fix compiler warning in lib_ppc/board.c
[u-boot] / board / freescale / mpc8536ds / mpc8536ds.c
index 8216c70cae24defdb21dfc874c398cd09eb46976..3066b24de7a3011eb4e56fa3c0ebdd52c54644dc 100644 (file)
@@ -608,6 +608,18 @@ get_board_ddr_clk(ulong dummy)
 }
 #endif
 
+int is_sata_supported(void)
+{
+       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+       uint devdisr = gur->devdisr;
+       uint sdrs2_io_sel =
+               (gur->pordevsr & MPC85xx_PORDEVSR_SRDS2_IO_SEL) >> 27;
+       if (sdrs2_io_sel & 0x04)
+               return 0;
+
+       return 1;
+}
+
 #if defined(CONFIG_OF_BOARD_SETUP)
 void
 ft_board_setup(void *blob, bd_t *bd)