1
0
Fork 0
forked from len0rd/rockbox

zenxfi3: fix vol+/vol- button pin assignment

Change-Id: Ibc8e19b03e786ac8c668c73c85c5e66df16cc632
This commit is contained in:
Bertrik Sikken 2012-05-22 23:41:21 +02:00
parent 1354f209f5
commit 779ec8cc6d

View file

@ -131,13 +131,13 @@ void button_init_device(void)
imx233_set_pin_function(0, 4, PINCTRL_FUNCTION_GPIO); imx233_set_pin_function(0, 4, PINCTRL_FUNCTION_GPIO);
imx233_enable_gpio_output(0, 4, false); imx233_enable_gpio_output(0, 4, false);
/* volume down button */ /* volume down button */
imx233_pinctrl_acquire_pin(0, 7, "volume down"); imx233_pinctrl_acquire_pin(2, 7, "volume down");
imx233_set_pin_function(0, 7, PINCTRL_FUNCTION_GPIO); imx233_set_pin_function(2, 7, PINCTRL_FUNCTION_GPIO);
imx233_enable_gpio_output(0, 7, false); imx233_enable_gpio_output(2, 7, false);
/* volume up button */ /* volume up button */
imx233_pinctrl_acquire_pin(0, 8, "volume up"); imx233_pinctrl_acquire_pin(2, 8, "volume up");
imx233_set_pin_function(0, 8, PINCTRL_FUNCTION_GPIO); imx233_set_pin_function(2, 8, PINCTRL_FUNCTION_GPIO);
imx233_enable_gpio_output(0, 8, false); imx233_enable_gpio_output(2, 8, false);
} }
bool button_hold(void) bool button_hold(void)