diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/arm/imx233/creative-zenxfi2/button-zenxfi2.c | 9 |
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) | |||
69 | 69 | ||
70 | imx233_touchscreen_init(); | 70 | imx233_touchscreen_init(); |
71 | imx233_touchscreen_enable(true); | 71 | imx233_touchscreen_enable(true); |
72 | |||
73 | /* power button */ | ||
74 | imx233_pinctrl_acquire_pin(0, 11, "power"); | ||
75 | imx233_set_pin_function(0, 11, PINCTRL_FUNCTION_GPIO); | ||
76 | imx233_enable_gpio_output(0, 11, false); | ||
77 | /* select button */ | ||
78 | imx233_pinctrl_acquire_pin(0, 14, "select"); | ||
79 | imx233_set_pin_function(0, 14, PINCTRL_FUNCTION_GPIO); | ||
80 | imx233_enable_gpio_output(0, 14, false); | ||
72 | } | 81 | } |
73 | 82 | ||
74 | static int touch_to_pixels(int *val_x, int *val_y) | 83 | static int touch_to_pixels(int *val_x, int *val_y) |