[ARM] tegra: stingray: Charge LED GPIO moved on P2
authorGreg Meiste <w30289@motorola.com>
Fri, 13 Aug 2010 18:40:12 +0000 (13:40 -0500)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:33:39 +0000 (16:33 -0700)
Support the charge LED on P2 hardware.

Change-Id: I2e8733f11d98c29015282520f8f560b5734f8696
Signed-off-by: Greg Meiste <w30289@motorola.com>
arch/arm/mach-tegra/board-stingray.c

index da91fa0a5cc01ffa9c74977b4e15401a7e1eeb93..8f836928d211dec1121e37569ca0d6ef946ce568 100644 (file)
@@ -885,7 +885,12 @@ static void __init tegra_stingray_init(void)
        }
 
        /* Enable charge LEDs */
-       if (stingray_revision() >= STINGRAY_REVISION_P0) {
+       if (stingray_revision() >= STINGRAY_REVISION_P2) {
+               tegra_gpio_enable(TEGRA_GPIO_PV0);
+               gpio_request(TEGRA_GPIO_PV0, "chg_led_disable");
+               gpio_direction_output(TEGRA_GPIO_PV0, 0);
+               gpio_export(TEGRA_GPIO_PV0, false);
+       } else if (stingray_revision() >= STINGRAY_REVISION_P0) {
                /* Set the SYS_CLK_REQ override bit to allow PZ5 to be used
                   as a GPIO. */
                writel(0, IO_TO_VIRT(TEGRA_PMC_BASE + 0x01C));