All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: Tegra: Harmony: Register and configure WM8903 IRQ GPIO
@ 2011-07-13 20:40 ` Stephen Warren
  0 siblings, 0 replies; 12+ messages in thread
From: Stephen Warren @ 2011-07-13 20:40 UTC (permalink / raw)
  To: Colin Cross, Erik Gilling, Olof Johansson
  Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	Stephen Warren

Technically, we need to request and configure the GPIO used as the WM8903
interrupt. This prevents conflicting registrations, and assures that the
GPIO is correctly configured in all cases, e.g. if the bootloader left the
GPIO in some unexpected state.

In practice, the previous code works as-is, at least when using ChromeOS's
U-Boot as the boot-loader.

Signed-off-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
---
 arch/arm/mach-tegra/board-harmony.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-tegra/board-harmony.c b/arch/arm/mach-tegra/board-harmony.c
index 846cd7d..e4548a5 100644
--- a/arch/arm/mach-tegra/board-harmony.c
+++ b/arch/arm/mach-tegra/board-harmony.c
@@ -109,6 +109,9 @@ static void __init harmony_i2c_init(void)
 	platform_device_register(&tegra_i2c_device3);
 	platform_device_register(&tegra_i2c_device4);
 
+	gpio_request(TEGRA_GPIO_CDC_IRQ, "wm8903");
+	gpio_direction_input(TEGRA_GPIO_CDC_IRQ);
+
 	i2c_register_board_info(0, &wm8903_board_info, 1);
 }
 
-- 
1.7.0.4

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

end of thread, other threads:[~2011-07-15 20:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-13 20:40 [PATCH 1/2] ARM: Tegra: Harmony: Register and configure WM8903 IRQ GPIO Stephen Warren
2011-07-13 20:40 ` Stephen Warren
     [not found] ` <1310589618-16080-1-git-send-email-swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-07-13 20:40   ` [PATCH 2/2] ARM: Tegra: Harmony: Add USB device Stephen Warren
2011-07-13 20:40     ` Stephen Warren
2011-07-14 12:25   ` [PATCH 1/2] ARM: Tegra: Harmony: Register and configure WM8903 IRQ GPIO Mark Brown
2011-07-14 12:25     ` Mark Brown
     [not found]     ` <20110714122520.GB14249-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2011-07-14 15:49       ` Stephen Warren
2011-07-14 15:49         ` Stephen Warren
     [not found]         ` <74CDBE0F657A3D45AFBB94109FB122FF049E834971-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-07-15  0:05           ` Mark Brown
2011-07-15  0:05             ` Mark Brown
     [not found]             ` <20110715000510.GD32716-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2011-07-15 20:02               ` Stephen Warren
2011-07-15 20:02                 ` Stephen Warren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.