pandora: set up twl pulldowns and debounce
authorGrazvydas Ignotas <notasas@gmail.com>
Tue, 24 May 2016 00:12:22 +0000 (03:12 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 3 Jul 2016 00:23:25 +0000 (03:23 +0300)
pulldowns supposedly save power, no differences noticed tho

arch/arm/mach-omap2/board-omap3pandora.c

index 397d46a..6048bcd 100644 (file)
@@ -407,6 +407,9 @@ static struct twl4030_gpio_platform_data omap3pandora_gpio_data = {
        .irq_base       = TWL4030_GPIO_IRQ_BASE,
        .irq_end        = TWL4030_GPIO_IRQ_END,
        .setup          = omap3pandora_twl_gpio_setup,
+       /* note: never set PU/PD for gpio2, it's connected to vaux2 */
+       .pulldowns      = BIT(8) | BIT(15) | BIT(16) | BIT(17),
+       .debounce       = BIT(0) | BIT(1),
 };
 
 static struct regulator_consumer_supply pandora_vmmc1_supply[] = {