linux-ti33x-psp 3.2: add support for audio cape and disable LBO gpio for battery...
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / beaglebone / 0075-beaglebone-disable-LBO-GPIO-for-battery-cape.patch
1 From 9332627ac6b70511742208d6fa7c7042c203f852 Mon Sep 17 00:00:00 2001
2 From: Koen Kooi <koen@dominion.thruhere.net>
3 Date: Tue, 3 Jul 2012 21:28:44 +0200
4 Subject: [PATCH 75/75] beaglebone: disable LBO GPIO for battery cape
6 Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
7 ---
8  arch/arm/mach-omap2/board-am335xevm.c |    4 +++-
9  1 file changed, 3 insertions(+), 1 deletion(-)
11 diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c
12 index af75c88..7d6ac77 100644
13 --- a/arch/arm/mach-omap2/board-am335xevm.c
14 +++ b/arch/arm/mach-omap2/board-am335xevm.c
15 @@ -2999,7 +2999,8 @@ static void beaglebone_cape_setup(struct memory_accessor *mem_acc, void *context
16                 pr_info("BeagleBone cape: initializing battery cape\n");
17                 // gpio1_6, P9_15 lowbat output
18                 // AIN4, P9_33 vbat
19 -               setup_pin_mux(batterycape_pin_mux);
20 +               /* LBO doesn't work, so disable it for now
21 +               setup_pin_mux(batterycape_pin_mux);
22                 #if defined(CONFIG_CHARGER_GPIO)
23                         int err;
24                         err = platform_device_register(&beaglebone_charger_device);
25 @@ -3007,6 +3008,7 @@ static void beaglebone_cape_setup(struct memory_accessor *mem_acc, void *context
26                                 pr_err("failed to register BeagleBone battery cape gpio\n");
27                 
28                 #endif
29 +               */
30         }
31         
32         if (!strncmp("BB-BONE-SERL-01", cape_config.partnumber, 15)) {
33 -- 
34 1.7.10