1
0
Fork 0
forked from len0rd/rockbox

imx233: normalise pinctrl names

The current pinctrl functions were a mess. Normalise the functions
names to make them shorter and clearer.

Change-Id: Iac6ff84625ef2b7610268e3a5802dc0088de3167
This commit is contained in:
Amaury Pouly 2013-06-16 19:18:56 +02:00
parent abb7d1dcfe
commit 918a06a12a
18 changed files with 281 additions and 281 deletions

View file

@ -71,13 +71,13 @@ void button_init_device(void)
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);
imx233_pinctrl_acquire(0, 11, "power");
imx233_pinctrl_set_function(0, 11, PINCTRL_FUNCTION_GPIO);
imx233_pinctrl_enable_gpio(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);
imx233_pinctrl_acquire(0, 14, "select");
imx233_pinctrl_set_function(0, 14, PINCTRL_FUNCTION_GPIO);
imx233_pinctrl_enable_gpio(0, 14, false);
}
static int touch_to_pixels(int *val_x, int *val_y)
@ -119,7 +119,7 @@ int button_read_device(int *data)
int res = 0;
/* B0P11: #power
* B0P14: #select */
uint32_t mask = imx233_get_gpio_input_mask(0, 0x4800);
uint32_t mask = imx233_pinctrl_get_gpio_mask(0, 0x4800);
if(!(mask & 0x800))
res |= BUTTON_POWER;
if(!(mask & 0x4000))