ramips: rt305x: add support for the ZyXEL NBG-419N board
[openwrt.git] / target / linux / lantiq / patches-2.6.39 / 510-register_madwifi.patch
1 --- a/arch/mips/lantiq/xway/devices.c
2 +++ b/arch/mips/lantiq/xway/devices.c
3 @@ -144,6 +144,19 @@ ltq_register_gpio_ebu(unsigned int value
4 platform_device_register(&ltq_ebu);
5 }
6
7 +/* madwifi */
8 +int lantiq_emulate_madwifi_eep = 0;
9 +unsigned long long lantiq_madwifi_eep_addr = 0;
10 +EXPORT_SYMBOL(lantiq_emulate_madwifi_eep);
11 +EXPORT_SYMBOL(lantiq_madwifi_eep_addr);
12 +
13 +void __init
14 +ltq_register_madwifi_eep(unsigned long long addr)
15 +{
16 + lantiq_emulate_madwifi_eep = 1;
17 + lantiq_madwifi_eep_addr = addr;
18 +}
19 +
20 static struct resource ltq_spi_resources[] = {
21 {
22 .start = LTQ_SSC_BASE_ADDR,
23 --- a/arch/mips/lantiq/xway/devices.h
24 +++ b/arch/mips/lantiq/xway/devices.h
25 @@ -17,5 +17,6 @@ extern void ltq_register_gpio_stp(void);
26 extern void ltq_register_ase_asc(void);
27 extern void ltq_register_etop(struct ltq_eth_data *eth);
28 extern void ltq_register_gpio_ebu(unsigned int value);
29 +extern void ltq_register_madwifi_eep(unsigned long long addr);
30
31 #endif
This page took 0.046366 seconds and 5 git commands to generate.