add dummy WMAC device
SVN-Revision: 13769
This commit is contained in:
parent
f7a9a397b8
commit
38826c1e19
5 changed files with 32 additions and 0 deletions
|
@ -82,4 +82,6 @@ extern void ar71xx_add_device_uart(void) __init;
|
||||||
|
|
||||||
extern void ar71xx_add_device_wdt(void) __init;
|
extern void ar71xx_add_device_wdt(void) __init;
|
||||||
|
|
||||||
|
extern void ar91xx_add_device_wmac(void) __init;
|
||||||
|
|
||||||
#endif /* __ASM_MACH_AR71XX_PLATFORM_H */
|
#endif /* __ASM_MACH_AR71XX_PLATFORM_H */
|
||||||
|
|
|
@ -80,6 +80,8 @@ static void __init ap83_setup(void)
|
||||||
ap83_gpio_buttons);
|
ap83_gpio_buttons);
|
||||||
|
|
||||||
ar71xx_add_device_usb();
|
ar71xx_add_device_usb();
|
||||||
|
|
||||||
|
ar91xx_add_device_wmac();
|
||||||
}
|
}
|
||||||
|
|
||||||
MIPS_MACHINE(AR71XX_MACH_AP83, "Atheros AP83", ap83_setup);
|
MIPS_MACHINE(AR71XX_MACH_AP83, "Atheros AP83", ap83_setup);
|
||||||
|
|
|
@ -123,6 +123,8 @@ static void __init tew_632brp_setup(void)
|
||||||
ar71xx_add_device_gpio_buttons(-1, TEW_632BRP_BUTTONS_POLL_INTERVAL,
|
ar71xx_add_device_gpio_buttons(-1, TEW_632BRP_BUTTONS_POLL_INTERVAL,
|
||||||
ARRAY_SIZE(tew_632brp_gpio_buttons),
|
ARRAY_SIZE(tew_632brp_gpio_buttons),
|
||||||
tew_632brp_gpio_buttons);
|
tew_632brp_gpio_buttons);
|
||||||
|
|
||||||
|
ar91xx_add_device_wmac();
|
||||||
}
|
}
|
||||||
|
|
||||||
MIPS_MACHINE(AR71XX_MACH_TEW_632BRP, "TRENDnet TEW-632BRP", tew_632brp_setup);
|
MIPS_MACHINE(AR71XX_MACH_TEW_632BRP, "TRENDnet TEW-632BRP", tew_632brp_setup);
|
||||||
|
|
|
@ -592,3 +592,27 @@ void __init ar71xx_parse_mac_addr(char *mac_str)
|
||||||
printk(KERN_DEBUG "ar71xx: failed to parse mac address "
|
printk(KERN_DEBUG "ar71xx: failed to parse mac address "
|
||||||
"\"%s\"\n", mac_str);
|
"\"%s\"\n", mac_str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static struct resource ar91xx_wmac_resources[] = {
|
||||||
|
{
|
||||||
|
.start = AR91XX_WMAC_BASE,
|
||||||
|
.end = AR91XX_WMAC_BASE + AR91XX_WMAC_SIZE - 1,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
}, {
|
||||||
|
.start = AR71XX_CPU_IRQ_WMAC,
|
||||||
|
.end = AR71XX_CPU_IRQ_WMAC,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device ar91xx_wmac_device = {
|
||||||
|
.name = "ath9k",
|
||||||
|
.id = -1,
|
||||||
|
.resource = ar91xx_wmac_resources,
|
||||||
|
.num_resources = ARRAY_SIZE(ar91xx_wmac_resources),
|
||||||
|
};
|
||||||
|
|
||||||
|
void __init ar91xx_add_device_wmac(void)
|
||||||
|
{
|
||||||
|
platform_device_register(&ar91xx_wmac_device);
|
||||||
|
}
|
||||||
|
|
|
@ -82,4 +82,6 @@ extern void ar71xx_add_device_uart(void) __init;
|
||||||
|
|
||||||
extern void ar71xx_add_device_wdt(void) __init;
|
extern void ar71xx_add_device_wdt(void) __init;
|
||||||
|
|
||||||
|
extern void ar91xx_add_device_wmac(void) __init;
|
||||||
|
|
||||||
#endif /* __ASM_MACH_AR71XX_PLATFORM_H */
|
#endif /* __ASM_MACH_AR71XX_PLATFORM_H */
|
||||||
|
|
Loading…
Reference in a new issue