2011-05-30 00:19:26 +03:00
|
|
|
--- a/arch/mips/lantiq/xway/devices.c
|
|
|
|
+++ b/arch/mips/lantiq/xway/devices.c
|
2011-07-17 22:27:44 +03:00
|
|
|
@@ -144,6 +144,19 @@ ltq_register_gpio_ebu(unsigned int value
|
2011-05-30 00:19:26 +03:00
|
|
|
platform_device_register(<q_ebu);
|
|
|
|
}
|
|
|
|
|
|
|
|
+/* madwifi */
|
|
|
|
+int lantiq_emulate_madwifi_eep = 0;
|
2011-07-17 22:27:44 +03:00
|
|
|
+unsigned long long lantiq_madwifi_eep_addr = 0;
|
2011-05-30 00:19:26 +03:00
|
|
|
+EXPORT_SYMBOL(lantiq_emulate_madwifi_eep);
|
2011-07-17 22:27:44 +03:00
|
|
|
+EXPORT_SYMBOL(lantiq_madwifi_eep_addr);
|
2011-05-30 00:19:26 +03:00
|
|
|
+
|
|
|
|
+void __init
|
2011-07-17 22:27:44 +03:00
|
|
|
+ltq_register_madwifi_eep(unsigned long long addr)
|
2011-05-30 00:19:26 +03:00
|
|
|
+{
|
|
|
|
+ lantiq_emulate_madwifi_eep = 1;
|
2011-07-17 22:27:44 +03:00
|
|
|
+ lantiq_madwifi_eep_addr = addr;
|
2011-05-30 00:19:26 +03:00
|
|
|
+}
|
|
|
|
+
|
|
|
|
static struct resource ltq_spi_resources[] = {
|
|
|
|
{
|
|
|
|
.start = LTQ_SSC_BASE_ADDR,
|
|
|
|
--- a/arch/mips/lantiq/xway/devices.h
|
|
|
|
+++ b/arch/mips/lantiq/xway/devices.h
|
2011-06-04 16:35:55 +03:00
|
|
|
@@ -17,5 +17,6 @@ extern void ltq_register_gpio_stp(void);
|
2011-05-30 00:19:26 +03:00
|
|
|
extern void ltq_register_ase_asc(void);
|
|
|
|
extern void ltq_register_etop(struct ltq_eth_data *eth);
|
|
|
|
extern void ltq_register_gpio_ebu(unsigned int value);
|
2011-07-17 22:27:44 +03:00
|
|
|
+extern void ltq_register_madwifi_eep(unsigned long long addr);
|
2011-05-30 00:19:26 +03:00
|
|
|
|
|
|
|
#endif
|