summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/creative-zenxfi2
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-05-22 23:00:29 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2012-05-22 23:01:03 +0200
commitbcbc1de5632686756551bbad36fa13f7a18f2a41 (patch)
treeb083c3a1efd874ca68ff365cee4cbd1e81443c54 /firmware/target/arm/imx233/creative-zenxfi2
parent3c19f39c86eda062177e4ec974e7879e75ba2210 (diff)
downloadrockbox-bcbc1de5632686756551bbad36fa13f7a18f2a41.tar.gz
rockbox-bcbc1de5632686756551bbad36fa13f7a18f2a41.tar.bz2
rockbox-bcbc1de5632686756551bbad36fa13f7a18f2a41.zip
zenxfi2: acquire button pins
Change-Id: I5d66ae10945f5231616c266ee74275cc69b036de
Diffstat (limited to 'firmware/target/arm/imx233/creative-zenxfi2')
-rw-r--r--firmware/target/arm/imx233/creative-zenxfi2/button-zenxfi2.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/creative-zenxfi2/button-zenxfi2.c b/firmware/target/arm/imx233/creative-zenxfi2/button-zenxfi2.c
index d6a4209292..0685963166 100644
--- a/firmware/target/arm/imx233/creative-zenxfi2/button-zenxfi2.c
+++ b/firmware/target/arm/imx233/creative-zenxfi2/button-zenxfi2.c
@@ -69,6 +69,15 @@ void button_init_device(void)
imx233_touchscreen_init();
imx233_touchscreen_enable(true);
+
+ /* power button */
+ imx233_pinctrl_acquire_pin(0, 11, "power");
+ imx233_set_pin_function(0, 11, PINCTRL_FUNCTION_GPIO);
+ imx233_enable_gpio_output(0, 11, false);
+ /* select button */
+ imx233_pinctrl_acquire_pin(0, 14, "select");
+ imx233_set_pin_function(0, 14, PINCTRL_FUNCTION_GPIO);
+ imx233_enable_gpio_output(0, 14, false);
}
static int touch_to_pixels(int *val_x, int *val_y)