From: Greg Meiste Date: Fri, 13 Aug 2010 18:40:12 +0000 (-0500) Subject: [ARM] tegra: stingray: Charge LED GPIO moved on P2 X-Git-Tag: firefly_0821_release~9834^2~685 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0182709057906faa73bf1b5fcba7b39ab4f65ae7;p=firefly-linux-kernel-4.4.55.git [ARM] tegra: stingray: Charge LED GPIO moved on P2 Support the charge LED on P2 hardware. Change-Id: I2e8733f11d98c29015282520f8f560b5734f8696 Signed-off-by: Greg Meiste --- 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));