[beagleboard] [RFC] BeagleBoard: Move USER button to GPIO 4 for BeagleBoard-xM

The BeagleBoard-xM is on GPIO 4, instead of GPIO 7. The BeagleBoard-xM doesn't have
NAND flash, so the boot decisions are different.

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>

Got a bit anxious with my patch-sending scripts... Still, the main
point is to find out if this is the right way to make these changes.

The BeagleBoard-xM is on GPIO 4, instead of GPIO 7. The BeagleBoard-xM doesn't have
NAND flash, so the boot decisions are different.

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
---
arch/arm/mach-omap2/board-omap3beagle.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
index dd830b1..bd91e33 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -711,6 +711,13 @@ static void __init omap3_beagle_init(void)
{
omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
omap3_beagle_i2c_init();
+
+ /* BeagleBoard-xM has the USER button on GPIO 4 instead of 7 */
+ if (cpu_is_omap3630())
+ {
+ gpio_buttons.gpio = 4;

I meant:

gpio_buttons[0].gpio = 4;

Still compiling.