mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 12:39:22 -04:00
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>
This commit is contained in:
parent
4087bc88ce
commit
32a9f5f216
1
examples/.gitignore
vendored
1
examples/.gitignore
vendored
@ -1,5 +1,6 @@
|
|||||||
/hello_world
|
/hello_world
|
||||||
/interrupt
|
/interrupt
|
||||||
/sched
|
/sched
|
||||||
|
/smc91111_eeprom
|
||||||
*.bin
|
*.bin
|
||||||
*.srec
|
*.srec
|
||||||
|
@ -91,14 +91,10 @@ BIN += sched.bin
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(ARCH),blackfin)
|
ifeq ($(ARCH),blackfin)
|
||||||
ifneq ($(BOARD),bf537-stamp)
|
|
||||||
ifneq ($(BOARD),bf537-pnav)
|
|
||||||
ELF += smc91111_eeprom
|
ELF += smc91111_eeprom
|
||||||
SREC += smc91111_eeprom.srec
|
SREC += smc91111_eeprom.srec
|
||||||
BIN += smc91111_eeprom.bin
|
BIN += smc91111_eeprom.bin
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# The following example is pretty 8xx specific...
|
# The following example is pretty 8xx specific...
|
||||||
ifeq ($(CPU),mpc8xx)
|
ifeq ($(CPU),mpc8xx)
|
||||||
|
@ -31,6 +31,8 @@
|
|||||||
#include <exports.h>
|
#include <exports.h>
|
||||||
#include "../drivers/net/smc91111.h"
|
#include "../drivers/net/smc91111.h"
|
||||||
|
|
||||||
|
#ifdef CONFIG_DRIVER_SMC91111
|
||||||
|
|
||||||
#define SMC_BASE_ADDRESS CONFIG_SMC91111_BASE
|
#define SMC_BASE_ADDRESS CONFIG_SMC91111_BASE
|
||||||
#define EEPROM 0x1;
|
#define EEPROM 0x1;
|
||||||
#define MAC 0x2;
|
#define MAC 0x2;
|
||||||
@ -387,3 +389,13 @@ void dump_reg (void)
|
|||||||
printf ("\n");
|
printf ("\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
int smc91111_eeprom (int argc, char *argv[])
|
||||||
|
{
|
||||||
|
printf("Not supported for this board\n");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user