]> git.sur5r.net Git - u-boot/blobdiff - examples/smc91111_eeprom.c
make smc91111_eeprom managment simpler by depending on the board configuration file...
[u-boot] / examples / smc91111_eeprom.c
index b8a3594e9e546f901af9449849d239834dcc9cf1..1e1129a334d2f220f95294e97442f17a0167a053 100644 (file)
@@ -31,6 +31,8 @@
 #include <exports.h>
 #include "../drivers/net/smc91111.h"
 
+#ifdef CONFIG_DRIVER_SMC91111
+
 #define SMC_BASE_ADDRESS CONFIG_SMC91111_BASE
 #define EEPROM         0x1;
 #define MAC            0x2;
@@ -387,3 +389,13 @@ void dump_reg (void)
                printf ("\n");
        }
 }
+
+#else
+
+int smc91111_eeprom (int argc, char *argv[])
+{
+       printf("Not supported for this board\n");
+       return 1;
+}
+
+#endif