diff mbox

omap3: beaglexm: fix user button.

Message ID 1300365890-28544-1-git-send-email-javier.martin@vista-silicon.com (mailing list archive)
State New, archived
Delegated to: Tony Lindgren
Headers show

Commit Message

Javier Martin March 17, 2011, 12:44 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
index 46d814a..abf87d1 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -615,6 +615,10 @@  static void __init omap3_beagle_init(void)
 	omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
 	omap3_beagle_init_rev();
 	omap3_beagle_i2c_init();
+	/* xM version uses pin 4 instead of 7 for user button */
+	if (omap3_beagle_get_rev() == OMAP3BEAGLE_BOARD_XM) {
+		gpio_buttons[0].gpio = 4;
+	}
 	platform_add_devices(omap3_beagle_devices,
 			ARRAY_SIZE(omap3_beagle_devices));
 	omap_serial_init();