summaryrefslogtreecommitdiff
path: root/examples/smc91111_eeprom.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-02-04 19:26:54 -0500
committerMike Frysinger <vapier@gentoo.org>2008-02-04 19:26:54 -0500
commit32a9f5f2160a034ea87ea651b233ef7c635e55cf (patch)
tree0200cf2bbdd5f6201e1603a2a3953d4637f7a2a8 /examples/smc91111_eeprom.c
parent4087bc88cebec75c432a7fe9f6afb545b0919831 (diff)
downloadu-boot-imx-32a9f5f2160a034ea87ea651b233ef7c635e55cf.zip
u-boot-imx-32a9f5f2160a034ea87ea651b233ef7c635e55cf.tar.gz
u-boot-imx-32a9f5f2160a034ea87ea651b233ef7c635e55cf.tar.bz2
make smc91111_eeprom managment simpler by depending on the board configuration file rather than a hardcoded list of boards
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'examples/smc91111_eeprom.c')
-rw-r--r--examples/smc91111_eeprom.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/smc91111_eeprom.c b/examples/smc91111_eeprom.c
index b8a3594..1e1129a 100644
--- a/examples/smc91111_eeprom.c
+++ b/examples/smc91111_eeprom.c
@@ -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