diff options
-rw-r--r-- | arch/arm/mach-omap2/board-omap3evm.c | 10 | ||||
-rw-r--r-- | drivers/net/wireless/ti/Kconfig | 9 | ||||
-rw-r--r-- | drivers/net/wireless/ti/Makefile | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ti/wilink_platform_data.c (renamed from drivers/net/wireless/ti/wlcore/wl12xx_platform_data.c) | 0 | ||||
-rw-r--r-- | drivers/net/wireless/ti/wlcore/Kconfig | 5 | ||||
-rw-r--r-- | drivers/net/wireless/ti/wlcore/Makefile | 3 | ||||
-rw-r--r-- | include/linux/wl12xx.h | 14 |
7 files changed, 28 insertions, 17 deletions
diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index 3985f35aee06..a4ca63ba7faa 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c | |||
@@ -309,7 +309,7 @@ static struct omap2_hsmmc_info mmc[] = { | |||
309 | .gpio_wp = 63, | 309 | .gpio_wp = 63, |
310 | .deferred = true, | 310 | .deferred = true, |
311 | }, | 311 | }, |
312 | #ifdef CONFIG_WL12XX_PLATFORM_DATA | 312 | #ifdef CONFIG_WILINK_PLATFORM_DATA |
313 | { | 313 | { |
314 | .name = "wl1271", | 314 | .name = "wl1271", |
315 | .mmc = 2, | 315 | .mmc = 2, |
@@ -450,7 +450,7 @@ static struct regulator_init_data omap3evm_vio = { | |||
450 | .consumer_supplies = omap3evm_vio_supply, | 450 | .consumer_supplies = omap3evm_vio_supply, |
451 | }; | 451 | }; |
452 | 452 | ||
453 | #ifdef CONFIG_WL12XX_PLATFORM_DATA | 453 | #ifdef CONFIG_WILINK_PLATFORM_DATA |
454 | 454 | ||
455 | #define OMAP3EVM_WLAN_PMENA_GPIO (150) | 455 | #define OMAP3EVM_WLAN_PMENA_GPIO (150) |
456 | #define OMAP3EVM_WLAN_IRQ_GPIO (149) | 456 | #define OMAP3EVM_WLAN_IRQ_GPIO (149) |
@@ -563,7 +563,7 @@ static struct omap_board_mux omap35x_board_mux[] __initdata = { | |||
563 | OMAP_PIN_OFF_NONE), | 563 | OMAP_PIN_OFF_NONE), |
564 | OMAP3_MUX(GPMC_WAIT2, OMAP_MUX_MODE4 | OMAP_PIN_INPUT_PULLUP | | 564 | OMAP3_MUX(GPMC_WAIT2, OMAP_MUX_MODE4 | OMAP_PIN_INPUT_PULLUP | |
565 | OMAP_PIN_OFF_NONE), | 565 | OMAP_PIN_OFF_NONE), |
566 | #ifdef CONFIG_WL12XX_PLATFORM_DATA | 566 | #ifdef CONFIG_WILINK_PLATFORM_DATA |
567 | /* WLAN IRQ - GPIO 149 */ | 567 | /* WLAN IRQ - GPIO 149 */ |
568 | OMAP3_MUX(UART1_RTS, OMAP_MUX_MODE4 | OMAP_PIN_INPUT), | 568 | OMAP3_MUX(UART1_RTS, OMAP_MUX_MODE4 | OMAP_PIN_INPUT), |
569 | 569 | ||
@@ -601,7 +601,7 @@ static struct omap_board_mux omap36x_board_mux[] __initdata = { | |||
601 | OMAP3_MUX(SYS_BOOT4, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE), | 601 | OMAP3_MUX(SYS_BOOT4, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE), |
602 | OMAP3_MUX(SYS_BOOT5, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE), | 602 | OMAP3_MUX(SYS_BOOT5, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE), |
603 | OMAP3_MUX(SYS_BOOT6, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE), | 603 | OMAP3_MUX(SYS_BOOT6, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE), |
604 | #ifdef CONFIG_WL12XX_PLATFORM_DATA | 604 | #ifdef CONFIG_WILINK_PLATFORM_DATA |
605 | /* WLAN IRQ - GPIO 149 */ | 605 | /* WLAN IRQ - GPIO 149 */ |
606 | OMAP3_MUX(UART1_RTS, OMAP_MUX_MODE4 | OMAP_PIN_INPUT), | 606 | OMAP3_MUX(UART1_RTS, OMAP_MUX_MODE4 | OMAP_PIN_INPUT), |
607 | 607 | ||
@@ -637,7 +637,7 @@ static struct gpio omap3_evm_ehci_gpios[] __initdata = { | |||
637 | 637 | ||
638 | static void __init omap3_evm_wl12xx_init(void) | 638 | static void __init omap3_evm_wl12xx_init(void) |
639 | { | 639 | { |
640 | #ifdef CONFIG_WL12XX_PLATFORM_DATA | 640 | #ifdef CONFIG_WILINK_PLATFORM_DATA |
641 | int ret; | 641 | int ret; |
642 | 642 | ||
643 | /* WL12xx WLAN Init */ | 643 | /* WL12xx WLAN Init */ |
diff --git a/drivers/net/wireless/ti/Kconfig b/drivers/net/wireless/ti/Kconfig index be800119d0a3..cbe1e7fef61b 100644 --- a/drivers/net/wireless/ti/Kconfig +++ b/drivers/net/wireless/ti/Kconfig | |||
@@ -12,4 +12,13 @@ source "drivers/net/wireless/ti/wl18xx/Kconfig" | |||
12 | 12 | ||
13 | # keep last for automatic dependencies | 13 | # keep last for automatic dependencies |
14 | source "drivers/net/wireless/ti/wlcore/Kconfig" | 14 | source "drivers/net/wireless/ti/wlcore/Kconfig" |
15 | |||
16 | config WILINK_PLATFORM_DATA | ||
17 | bool "TI WiLink platform data" | ||
18 | depends on WLCORE_SDIO || WL1251_SDIO | ||
19 | default y | ||
20 | ---help--- | ||
21 | Small platform data bit needed to pass data to the sdio modules. | ||
22 | |||
23 | |||
15 | endif # WL_TI | 24 | endif # WL_TI |
diff --git a/drivers/net/wireless/ti/Makefile b/drivers/net/wireless/ti/Makefile index 4d6823983c04..af14231aeede 100644 --- a/drivers/net/wireless/ti/Makefile +++ b/drivers/net/wireless/ti/Makefile | |||
@@ -1,5 +1,7 @@ | |||
1 | obj-$(CONFIG_WLCORE) += wlcore/ | 1 | obj-$(CONFIG_WLCORE) += wlcore/ |
2 | obj-$(CONFIG_WL12XX) += wl12xx/ | 2 | obj-$(CONFIG_WL12XX) += wl12xx/ |
3 | obj-$(CONFIG_WL12XX_PLATFORM_DATA) += wlcore/ | ||
4 | obj-$(CONFIG_WL1251) += wl1251/ | 3 | obj-$(CONFIG_WL1251) += wl1251/ |
5 | obj-$(CONFIG_WL18XX) += wl18xx/ | 4 | obj-$(CONFIG_WL18XX) += wl18xx/ |
5 | |||
6 | # small builtin driver bit | ||
7 | obj-$(CONFIG_WILINK_PLATFORM_DATA) += wilink_platform_data.o | ||
diff --git a/drivers/net/wireless/ti/wlcore/wl12xx_platform_data.c b/drivers/net/wireless/ti/wilink_platform_data.c index 998e95895f9d..998e95895f9d 100644 --- a/drivers/net/wireless/ti/wlcore/wl12xx_platform_data.c +++ b/drivers/net/wireless/ti/wilink_platform_data.c | |||
diff --git a/drivers/net/wireless/ti/wlcore/Kconfig b/drivers/net/wireless/ti/wlcore/Kconfig index d7b907e67170..2b832825c3d4 100644 --- a/drivers/net/wireless/ti/wlcore/Kconfig +++ b/drivers/net/wireless/ti/wlcore/Kconfig | |||
@@ -33,8 +33,3 @@ config WLCORE_SDIO | |||
33 | 33 | ||
34 | If you choose to build a module, it'll be called wlcore_sdio. | 34 | If you choose to build a module, it'll be called wlcore_sdio. |
35 | Say N if unsure. | 35 | Say N if unsure. |
36 | |||
37 | config WL12XX_PLATFORM_DATA | ||
38 | bool | ||
39 | depends on WLCORE_SDIO != n || WL1251_SDIO != n | ||
40 | default y | ||
diff --git a/drivers/net/wireless/ti/wlcore/Makefile b/drivers/net/wireless/ti/wlcore/Makefile index d9fba9e32130..b21398f6c3ec 100644 --- a/drivers/net/wireless/ti/wlcore/Makefile +++ b/drivers/net/wireless/ti/wlcore/Makefile | |||
@@ -9,7 +9,4 @@ obj-$(CONFIG_WLCORE) += wlcore.o | |||
9 | obj-$(CONFIG_WLCORE_SPI) += wlcore_spi.o | 9 | obj-$(CONFIG_WLCORE_SPI) += wlcore_spi.o |
10 | obj-$(CONFIG_WLCORE_SDIO) += wlcore_sdio.o | 10 | obj-$(CONFIG_WLCORE_SDIO) += wlcore_sdio.o |
11 | 11 | ||
12 | # small builtin driver bit | ||
13 | obj-$(CONFIG_WL12XX_PLATFORM_DATA) += wl12xx_platform_data.o | ||
14 | |||
15 | ccflags-y += -D__CHECK_ENDIAN__ | 12 | ccflags-y += -D__CHECK_ENDIAN__ |
diff --git a/include/linux/wl12xx.h b/include/linux/wl12xx.h index 360c9bce665c..a54fe82e704b 100644 --- a/include/linux/wl12xx.h +++ b/include/linux/wl12xx.h | |||
@@ -24,6 +24,8 @@ | |||
24 | #ifndef _LINUX_WL12XX_H | 24 | #ifndef _LINUX_WL12XX_H |
25 | #define _LINUX_WL12XX_H | 25 | #define _LINUX_WL12XX_H |
26 | 26 | ||
27 | #include <linux/err.h> | ||
28 | |||
27 | /* Reference clock values */ | 29 | /* Reference clock values */ |
28 | enum { | 30 | enum { |
29 | WL12XX_REFCLOCK_19 = 0, /* 19.2 MHz */ | 31 | WL12XX_REFCLOCK_19 = 0, /* 19.2 MHz */ |
@@ -60,10 +62,12 @@ struct wl12xx_platform_data { | |||
60 | /* Platform does not support level trigger interrupts */ | 62 | /* Platform does not support level trigger interrupts */ |
61 | #define WL12XX_PLATFORM_QUIRK_EDGE_IRQ BIT(0) | 63 | #define WL12XX_PLATFORM_QUIRK_EDGE_IRQ BIT(0) |
62 | 64 | ||
63 | #ifdef CONFIG_WL12XX_PLATFORM_DATA | 65 | #ifdef CONFIG_WILINK_PLATFORM_DATA |
64 | 66 | ||
65 | int wl12xx_set_platform_data(const struct wl12xx_platform_data *data); | 67 | int wl12xx_set_platform_data(const struct wl12xx_platform_data *data); |
66 | 68 | ||
69 | struct wl12xx_platform_data *wl12xx_get_platform_data(void); | ||
70 | |||
67 | #else | 71 | #else |
68 | 72 | ||
69 | static inline | 73 | static inline |
@@ -72,8 +76,12 @@ int wl12xx_set_platform_data(const struct wl12xx_platform_data *data) | |||
72 | return -ENOSYS; | 76 | return -ENOSYS; |
73 | } | 77 | } |
74 | 78 | ||
75 | #endif | 79 | static inline |
80 | struct wl12xx_platform_data *wl12xx_get_platform_data(void) | ||
81 | { | ||
82 | return ERR_PTR(-ENODATA); | ||
83 | } | ||
76 | 84 | ||
77 | struct wl12xx_platform_data *wl12xx_get_platform_data(void); | 85 | #endif |
78 | 86 | ||
79 | #endif | 87 | #endif |