mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 02:48:37 +02:00
Do not register more than 2 ethernet porst for CFE based devices (i.e : Compex WP54G-wrt)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6683 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
51eaa39dca
commit
58531e4910
@ -30,9 +30,10 @@
|
||||
#include <asm/addrspace.h>
|
||||
|
||||
/* boot loaders specific definitions */
|
||||
#define CFE_EPTSEAL 0x43464531
|
||||
#define CFE_EPTSEAL 0x43464531 /* CFE1 is the magic number to recognize CFE from other bootloaders */
|
||||
#define CFE 1
|
||||
#define MYLOADER 2
|
||||
#define UBOOT 2
|
||||
#define MYLOADER 3
|
||||
#define UNKNOWN 0
|
||||
|
||||
void setup_prom_printf(int);
|
||||
|
@ -390,6 +390,9 @@ static int __init adm5120_sw_init(void)
|
||||
/* MII port? */
|
||||
if (adm5120_get_reg(ADM5120_CODE) & ADM5120_CODE_PQFP)
|
||||
adm5120_nrdevs = 5;
|
||||
/* CFE based devices only have two enet ports */
|
||||
else if (boot_loader_type == CFE)
|
||||
adm5120_nrdevs = 2
|
||||
else
|
||||
adm5120_nrdevs = 6;
|
||||
|
||||
|
@ -102,5 +102,12 @@ struct adm5120_info {
|
||||
u16 ports;
|
||||
u16 vlan;
|
||||
};
|
||||
#define UNKNOWN 0
|
||||
|
||||
#define UBOOT 2
|
||||
#define MYLOADER 3
|
||||
|
||||
/* Type of boot loader, detected by the prom */
|
||||
extern boot_loader_type;
|
||||
|
||||
#endif /* _INCLUDE_ADM5120SW_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user