[PATCH] ARM: OMAP3: igep0020: Set WIFI/BT GPIO pins in correct mux mode

2012-10-29 Thread Anders Hedlund
Configure the WIFI/BT GPIO pin muxes unless the bootloader hasn't already
done so.

Signed-off-by: Anders Hedlund anders.j.hedl...@gmail.com
Cc: Jonas Zetterberg j...@jozz.se
Cc: Enric Balletbo i Serra eballe...@gmail.com
---
 arch/arm/mach-omap2/board-igep0020.c |7 +++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/mach-omap2/board-igep0020.c 
b/arch/arm/mach-omap2/board-igep0020.c
index dbc705a..17e45bc 100644
--- a/arch/arm/mach-omap2/board-igep0020.c
+++ b/arch/arm/mach-omap2/board-igep0020.c
@@ -579,6 +579,13 @@ static void __init igep_wlan_bt_init(void)
} else
return;
 
+#ifdef CONFIG_OMAP_MUX
+   /* Make sure that the GPIO pins are muxed correctly */
+   omap_mux_init_gpio(igep_wlan_bt_gpios[0].gpio, OMAP_PIN_OUTPUT);
+   omap_mux_init_gpio(igep_wlan_bt_gpios[1].gpio, OMAP_PIN_OUTPUT);
+   omap_mux_init_gpio(igep_wlan_bt_gpios[2].gpio, OMAP_PIN_OUTPUT);
+#endif
+
err = gpio_request_array(igep_wlan_bt_gpios,
 ARRAY_SIZE(igep_wlan_bt_gpios));
if (err) {
-- 
1.7.10.4

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH v2] ARM: OMAP3: igep0020: Set WIFI/BT GPIO pins in correct mux mode

2012-10-29 Thread Anders Hedlund
Setup the WIFI/BT GPIO pin muxes to enable WIFI/BT functionality.

Signed-off-by: Anders Hedlund anders.j.hedl...@gmail.com
Cc: Jonas Zetterberg j...@jozz.se
Cc: Enric Balletbo i Serra eballe...@gmail.com
Cc: Javier Martinez Canillas martinez.jav...@gmail.com
Cc: Matthias Brugger mbrug...@iseebcn.com
---
 arch/arm/mach-omap2/board-igep0020.c |5 +
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/mach-omap2/board-igep0020.c 
b/arch/arm/mach-omap2/board-igep0020.c
index 2821448..2a21947 100644
--- a/arch/arm/mach-omap2/board-igep0020.c
+++ b/arch/arm/mach-omap2/board-igep0020.c
@@ -583,6 +583,11 @@ static void __init igep_wlan_bt_init(void)
} else
return;
 
+   /* Make sure that the GPIO pins are muxed correctly */
+   omap_mux_init_gpio(igep_wlan_bt_gpios[0].gpio, OMAP_PIN_OUTPUT);
+   omap_mux_init_gpio(igep_wlan_bt_gpios[1].gpio, OMAP_PIN_OUTPUT);
+   omap_mux_init_gpio(igep_wlan_bt_gpios[2].gpio, OMAP_PIN_OUTPUT);
+
err = gpio_request_array(igep_wlan_bt_gpios,
 ARRAY_SIZE(igep_wlan_bt_gpios));
if (err) {
-- 
1.7.10.4

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH v2] ARM: OMAP3: igep0020: Set WIFI/BT GPIO pins in correct mux mode

2012-10-29 Thread Anders Hedlund
Setup the WIFI/BT GPIO pin muxes to enable WIFI/BT functionality.

Signed-off-by: Anders Hedlund anders.j.hedl...@gmail.com
Cc: Jonas Zetterberg j...@jozz.se
Cc: Enric Balletbo i Serra eballe...@gmail.com
Cc: Javier Martinez Canillas martinez.jav...@gmail.com
Cc: Matthias Brugger mbrug...@iseebcn.com
---
 arch/arm/mach-omap2/board-igep0020.c |5 +
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/mach-omap2/board-igep0020.c 
b/arch/arm/mach-omap2/board-igep0020.c
index 2821448..2a21947 100644
--- a/arch/arm/mach-omap2/board-igep0020.c
+++ b/arch/arm/mach-omap2/board-igep0020.c
@@ -583,6 +583,11 @@ static void __init igep_wlan_bt_init(void)
} else
return;
 
+   /* Make sure that the GPIO pins are muxed correctly */
+   omap_mux_init_gpio(igep_wlan_bt_gpios[0].gpio, OMAP_PIN_OUTPUT);
+   omap_mux_init_gpio(igep_wlan_bt_gpios[1].gpio, OMAP_PIN_OUTPUT);
+   omap_mux_init_gpio(igep_wlan_bt_gpios[2].gpio, OMAP_PIN_OUTPUT);
+
err = gpio_request_array(igep_wlan_bt_gpios,
 ARRAY_SIZE(igep_wlan_bt_gpios));
if (err) {
-- 
1.7.10.4

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v2] ARM: OMAP3: igep0020: Set WIFI/BT GPIO pins in correct mux mode

2012-10-29 Thread Anders Hedlund
Hi Tony and all,
Sorry... please ignore this one. Sent with incorrect Message-Id. A new
(hopefully correct) patch mail has already been sent...

Br,
Anders

2012/10/29 Anders Hedlund anders.j.hedl...@gmail.com:
 Setup the WIFI/BT GPIO pin muxes to enable WIFI/BT functionality.

 Signed-off-by: Anders Hedlund anders.j.hedl...@gmail.com
 Cc: Jonas Zetterberg j...@jozz.se
 Cc: Enric Balletbo i Serra eballe...@gmail.com
 Cc: Javier Martinez Canillas martinez.jav...@gmail.com
 Cc: Matthias Brugger mbrug...@iseebcn.com
 ---
  arch/arm/mach-omap2/board-igep0020.c |5 +
  1 file changed, 5 insertions(+)

 diff --git a/arch/arm/mach-omap2/board-igep0020.c 
 b/arch/arm/mach-omap2/board-igep0020.c
 index 2821448..2a21947 100644
 --- a/arch/arm/mach-omap2/board-igep0020.c
 +++ b/arch/arm/mach-omap2/board-igep0020.c
 @@ -583,6 +583,11 @@ static void __init igep_wlan_bt_init(void)
 } else
 return;

 +   /* Make sure that the GPIO pins are muxed correctly */
 +   omap_mux_init_gpio(igep_wlan_bt_gpios[0].gpio, OMAP_PIN_OUTPUT);
 +   omap_mux_init_gpio(igep_wlan_bt_gpios[1].gpio, OMAP_PIN_OUTPUT);
 +   omap_mux_init_gpio(igep_wlan_bt_gpios[2].gpio, OMAP_PIN_OUTPUT);
 +
 err = gpio_request_array(igep_wlan_bt_gpios,
  ARRAY_SIZE(igep_wlan_bt_gpios));
 if (err) {
 --
 1.7.10.4

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html