]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_ide.c
mucmc52, uc101: delete ata@3a00 node, if no CF card is detected
[karo-tx-uboot.git] / common / cmd_ide.c
index 4d7a0ac9e46a465147e55355912d417401f40519..ec9a1df38e778483237fb2241d1d05d15c323017 100644 (file)
@@ -1624,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