aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-omap2/board-omap3evm.c32
1 files changed, 22 insertions, 10 deletions
diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c
index 5364147892c1..7341f966bf1a 100644
--- a/arch/arm/mach-omap2/board-omap3evm.c
+++ b/arch/arm/mach-omap2/board-omap3evm.c
@@ -411,7 +411,7 @@ static struct omap2_hsmmc_info mmc[] = {
411#ifdef CONFIG_WL12XX_PLATFORM_DATA 411#ifdef CONFIG_WL12XX_PLATFORM_DATA
412 { 412 {
413 .name = "wl1271", 413 .name = "wl1271",
414 .mmc = 2, 414 .mmc = 2,
415 .caps = MMC_CAP_4_BIT_DATA | MMC_CAP_POWER_OFF_CARD, 415 .caps = MMC_CAP_4_BIT_DATA | MMC_CAP_POWER_OFF_CARD,
416 .gpio_wp = -EINVAL, 416 .gpio_wp = -EINVAL,
417 .gpio_cd = -EINVAL, 417 .gpio_cd = -EINVAL,
@@ -603,10 +603,8 @@ static struct regulator_init_data omap3evm_vio = {
603#define OMAP3EVM_WLAN_PMENA_GPIO (150) 603#define OMAP3EVM_WLAN_PMENA_GPIO (150)
604#define OMAP3EVM_WLAN_IRQ_GPIO (149) 604#define OMAP3EVM_WLAN_IRQ_GPIO (149)
605 605
606static struct regulator_consumer_supply omap3evm_vmmc2_supply = { 606static struct regulator_consumer_supply omap3evm_vmmc2_supply =
607 .supply = "vmmc", 607 REGULATOR_SUPPLY("vmmc", "mmci-omap-hs.1");
608 .dev_name = "mmci-omap-hs.1",
609};
610 608
611/* VMMC2 for driving the WL12xx module */ 609/* VMMC2 for driving the WL12xx module */
612static struct regulator_init_data omap3evm_vmmc2 = { 610static struct regulator_init_data omap3evm_vmmc2 = {
@@ -627,7 +625,7 @@ static struct fixed_voltage_config omap3evm_vwlan = {
627 .init_data = &omap3evm_vmmc2, 625 .init_data = &omap3evm_vmmc2,
628}; 626};
629 627
630static struct platform_device omap3evm_vwlan_device = { 628static struct platform_device omap3evm_wlan_regulator = {
631 .name = "reg-fixed-voltage", 629 .name = "reg-fixed-voltage",
632 .id = 1, 630 .id = 1,
633 .dev = { 631 .dev = {
@@ -637,8 +635,7 @@ static struct platform_device omap3evm_vwlan_device = {
637 635
638struct wl12xx_platform_data omap3evm_wlan_data __initdata = { 636struct wl12xx_platform_data omap3evm_wlan_data __initdata = {
639 .irq = OMAP_GPIO_IRQ(OMAP3EVM_WLAN_IRQ_GPIO), 637 .irq = OMAP_GPIO_IRQ(OMAP3EVM_WLAN_IRQ_GPIO),
640 /* ref clock is 38.4 MHz */ 638 .board_ref_clock = WL12XX_REFCLOCK_38, /* 38.4 MHz */
641 .board_ref_clock = 2,
642}; 639};
643#endif 640#endif
644 641
@@ -765,7 +762,7 @@ static struct omap_board_mux omap35x_board_mux[] __initdata = {
765 OMAP_PIN_OFF_NONE), 762 OMAP_PIN_OFF_NONE),
766#ifdef CONFIG_WL12XX_PLATFORM_DATA 763#ifdef CONFIG_WL12XX_PLATFORM_DATA
767 /* WLAN IRQ - GPIO 149 */ 764 /* WLAN IRQ - GPIO 149 */
768 OMAP3_MUX(UART1_RTS, OMAP_MUX_MODE4 | OMAP_PIN_INPUT_PULLUP), 765 OMAP3_MUX(UART1_RTS, OMAP_MUX_MODE4 | OMAP_PIN_INPUT),
769 766
770 /* WLAN POWER ENABLE - GPIO 150 */ 767 /* WLAN POWER ENABLE - GPIO 150 */
771 OMAP3_MUX(UART1_CTS, OMAP_MUX_MODE4 | OMAP_PIN_OUTPUT), 768 OMAP3_MUX(UART1_CTS, OMAP_MUX_MODE4 | OMAP_PIN_OUTPUT),
@@ -801,6 +798,21 @@ static struct omap_board_mux omap36x_board_mux[] __initdata = {
801 OMAP3_MUX(SYS_BOOT4, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE), 798 OMAP3_MUX(SYS_BOOT4, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE),
802 OMAP3_MUX(SYS_BOOT5, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE), 799 OMAP3_MUX(SYS_BOOT5, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE),
803 OMAP3_MUX(SYS_BOOT6, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE), 800 OMAP3_MUX(SYS_BOOT6, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE),
801#ifdef CONFIG_WL12XX_PLATFORM_DATA
802 /* WLAN IRQ - GPIO 149 */
803 OMAP3_MUX(UART1_RTS, OMAP_MUX_MODE4 | OMAP_PIN_INPUT),
804
805 /* WLAN POWER ENABLE - GPIO 150 */
806 OMAP3_MUX(UART1_CTS, OMAP_MUX_MODE4 | OMAP_PIN_OUTPUT),
807
808 /* MMC2 SDIO pin muxes for WL12xx */
809 OMAP3_MUX(SDMMC2_CLK, OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLUP),
810 OMAP3_MUX(SDMMC2_CMD, OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLUP),
811 OMAP3_MUX(SDMMC2_DAT0, OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLUP),
812 OMAP3_MUX(SDMMC2_DAT1, OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLUP),
813 OMAP3_MUX(SDMMC2_DAT2, OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLUP),
814 OMAP3_MUX(SDMMC2_DAT3, OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLUP),
815#endif
804 816
805 { .reg_offset = OMAP_MUX_TERMINATOR }, 817 { .reg_offset = OMAP_MUX_TERMINATOR },
806}; 818};
@@ -871,7 +883,7 @@ static void __init omap3_evm_init(void)
871 /* WL12xx WLAN Init */ 883 /* WL12xx WLAN Init */
872 if (wl12xx_set_platform_data(&omap3evm_wlan_data)) 884 if (wl12xx_set_platform_data(&omap3evm_wlan_data))
873 pr_err("error setting wl12xx data\n"); 885 pr_err("error setting wl12xx data\n");
874 platform_device_register(&omap3evm_vwlan_device); 886 platform_device_register(&omap3evm_wlan_regulator);
875#endif 887#endif
876} 888}
877 889