]> git.sur5r.net Git - u-boot/blobdiff - common/cmd_ide.c
Blackfin: TWI/I2C: implement bus speed get/set functions
[u-boot] / common / cmd_ide.c
index feda773beef999f57a654bea60e8e32666accd55..ec9a1df38e778483237fb2241d1d05d15c323017 100644 (file)
 #include <mpc5xxx.h>
 #endif
 
-#ifdef CONFIG_MPC512X
-#include <mpc512x.h>
-#endif
-
 #include <ide.h>
 #include <ata.h>
 
@@ -1628,6 +1624,14 @@ static void ide_led (uchar led, uchar status)
 
 #endif /* CONFIG_IDE_LED */
 
+#if defined(CONFIG_OF_IDE_FIXUP)
+int ide_device_present(int dev)
+{
+       if (dev >= CONFIG_SYS_IDE_MAXBUS)
+               return 0;
+       return (ide_dev_desc[dev].type == DEV_TYPE_UNKNOWN ? 0 : 1);
+}
+#endif
 /* ------------------------------------------------------------------------- */
 
 #ifdef CONFIG_ATAPI