11 #include <linux/kernel.h>
25 #define NETTEL_SMC0_ADDR 0x30600300
26 #define NETTEL_SMC0_IRQ 29
28 #define NETTEL_SMC1_ADDR 0x30600000
29 #define NETTEL_SMC1_IRQ 27
36 #define SMC91xx_BANKSELECT 14
37 #define SMC91xx_BASEADDR 2
38 #define SMC91xx_BASEMAC 4
42 static struct resource nettel_smc91x_0_resources[] = {
55 static struct resource nettel_smc91x_1_resources[] = {
72 .num_resources =
ARRAY_SIZE(nettel_smc91x_0_resources),
73 .resource = nettel_smc91x_0_resources,
78 .num_resources =
ARRAY_SIZE(nettel_smc91x_1_resources),
79 .resource = nettel_smc91x_1_resources,
91 0x00, 0xd0, 0xcf, 0x00, 0x00, 0x01,
100 static void __init nettel_smc91x_setmac(
unsigned int ioaddr,
unsigned int flashaddr)
104 macp = (
u16 *) flashaddr;
105 if ((macp[0] == 0xffff) && (macp[1] == 0xffff) && (macp[2] == 0xffff))
106 macp = (
u16 *) &nettel_macdefault[0];
122 static void __init nettel_smc91x_init(
void)
125 mcf_setppdata(0, 0x0080);
128 mcf_setppdata(0x0080, 0);
144 static int __init init_nettel(
void)
146 nettel_smc91x_init();