linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: OMAP3: igep0020: Set WIFI/BT GPIO pins in correct mux mode
@ 2012-10-29 17:51 Anders Hedlund
  2012-10-29 18:31 ` Enric Balletbo Serra
  2012-10-29 19:25 ` [PATCH v2] " Anders Hedlund
  0 siblings, 2 replies; 4+ messages in thread
From: Anders Hedlund @ 2012-10-29 17:51 UTC (permalink / raw)
  To: tony, linux-omap; +Cc: Anders Hedlund, Jonas Zetterberg, Enric Balletbo i Serra

Configure the WIFI/BT GPIO pin muxes unless the bootloader hasn't already
done so.

Signed-off-by: Anders Hedlund <anders.j.hedlund@gmail.com>
Cc: Jonas Zetterberg <jozz@jozz.se>
Cc: Enric Balletbo i Serra <eballetbo@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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] ARM: OMAP3: igep0020: Set WIFI/BT GPIO pins in correct mux mode
  2012-10-29 17:51 [PATCH] ARM: OMAP3: igep0020: Set WIFI/BT GPIO pins in correct mux mode Anders Hedlund
@ 2012-10-29 18:31 ` Enric Balletbo Serra
  2012-11-07 22:00   ` Tony Lindgren
  2012-10-29 19:25 ` [PATCH v2] " Anders Hedlund
  1 sibling, 1 reply; 4+ messages in thread
From: Enric Balletbo Serra @ 2012-10-29 18:31 UTC (permalink / raw)
  To: Anders Hedlund
  Cc: tony, linux-omap, Jonas Zetterberg, Javier Martinez Canillas,
	Matthias Brugger

Hi,

Thanks for the patch, just one comment below.

2012/10/29 Anders Hedlund <anders.j.hedlund@gmail.com>:
> Configure the WIFI/BT GPIO pin muxes unless the bootloader hasn't already
> done so.
>
> Signed-off-by: Anders Hedlund <anders.j.hedlund@gmail.com>
> Cc: Jonas Zetterberg <jozz@jozz.se>
> Cc: Enric Balletbo i Serra <eballetbo@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

The ifdef is not required here (the mux.h file does this for you)

> +       /* 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
>

Tony, after corrections, as this is a fix could be included ?  Or we
need to wait to the next merge window.

The problem is, with recent u-boot these pins are not muxed because
u-boot sets only the minimum required for uboot functionality and
kernel boot. In kernel these pins must be muxed in order to get the
wifi and bluetooth work.

( CCing: Javier Martinez and Matthias Brugger )

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2] ARM: OMAP3: igep0020: Set WIFI/BT GPIO pins in correct mux mode
  2012-10-29 17:51 [PATCH] ARM: OMAP3: igep0020: Set WIFI/BT GPIO pins in correct mux mode Anders Hedlund
  2012-10-29 18:31 ` Enric Balletbo Serra
@ 2012-10-29 19:25 ` Anders Hedlund
  1 sibling, 0 replies; 4+ messages in thread
From: Anders Hedlund @ 2012-10-29 19:25 UTC (permalink / raw)
  To: tony, linux-omap
  Cc: Anders Hedlund, Jonas Zetterberg, Enric Balletbo i Serra,
	Javier Martinez Canillas, Matthias Brugger

Setup the WIFI/BT GPIO pin muxes to enable WIFI/BT functionality.

Signed-off-by: Anders Hedlund <anders.j.hedlund@gmail.com>
Cc: Jonas Zetterberg <jozz@jozz.se>
Cc: Enric Balletbo i Serra <eballetbo@gmail.com>
Cc: Javier Martinez Canillas <martinez.javier@gmail.com>
Cc: Matthias Brugger <mbrugger@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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] ARM: OMAP3: igep0020: Set WIFI/BT GPIO pins in correct mux mode
  2012-10-29 18:31 ` Enric Balletbo Serra
@ 2012-11-07 22:00   ` Tony Lindgren
  0 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2012-11-07 22:00 UTC (permalink / raw)
  To: Enric Balletbo Serra
  Cc: Anders Hedlund, linux-omap, Jonas Zetterberg,
	Javier Martinez Canillas, Matthias Brugger

* Enric Balletbo Serra <eballetbo@gmail.com> [121029 11:33]:
> 
> Tony, after corrections, as this is a fix could be included ?  Or we
> need to wait to the next merge window.
> 
> The problem is, with recent u-boot these pins are not muxed because
> u-boot sets only the minimum required for uboot functionality and
> kernel boot. In kernel these pins must be muxed in order to get the
> wifi and bluetooth work.

OK I'll add it to omap-for-v3.7-rc4/fixes-part2 with updated description
for the regression. Will also move the maintainers entry there from
the board branch.

Regards,

Tony

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-11-07 22:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-29 17:51 [PATCH] ARM: OMAP3: igep0020: Set WIFI/BT GPIO pins in correct mux mode Anders Hedlund
2012-10-29 18:31 ` Enric Balletbo Serra
2012-11-07 22:00   ` Tony Lindgren
2012-10-29 19:25 ` [PATCH v2] " Anders Hedlund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).