From 0182709057906faa73bf1b5fcba7b39ab4f65ae7 Mon Sep 17 00:00:00 2001 From: Greg Meiste Date: Fri, 13 Aug 2010 13:40:12 -0500 Subject: [PATCH] [ARM] tegra: stingray: Charge LED GPIO moved on P2 Support the charge LED on P2 hardware. Change-Id: I2e8733f11d98c29015282520f8f560b5734f8696 Signed-off-by: Greg Meiste --- arch/arm/mach-tegra/board-stingray.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-tegra/board-stingray.c b/arch/arm/mach-tegra/board-stingray.c index da91fa0a5cc0..8f836928d211 100644 --- a/arch/arm/mach-tegra/board-stingray.c +++ b/arch/arm/mach-tegra/board-stingray.c @@ -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)); -- 2.34.1