From 52426d08918eadfba178f74e1bd5d1663f9c73e0 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sun, 16 Jun 2013 21:15:09 +0200 Subject: imx233: fix pinctrl for stmp3600 and stmp3700 Change-Id: I87281b89315890fa285cb9a63fda5c90bdc8cdbf --- firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c') diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c b/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c index 612ec39fb9..ad0dd16ff3 100644 --- a/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c +++ b/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c @@ -79,7 +79,7 @@ bool button_debug_screen(void) lcd_putsf(0, 1, "RMI: id=%s p=%x s=%x", product_id, func_presence, sensor_prop); lcd_putsf(0, 2, "xmax=%d ymax=%d res=%d", x_max, y_max, sensor_resol); lcd_putsf(0, 3, "attn=%d ctl=%x int=%x", - imx233_pinctrl_get_gpio_mask(0, 0x08000000) ? 0 : 1, + imx233_pinctrl_get_gpio(0, 27) ? 0 : 1, rmi_read_single(RMI_DEVICE_CONTROL), rmi_read_single(RMI_INTERRUPT_REQUEST)); lcd_putsf(0, 4, "sensi: %d min_dist: %d", (int)sensitivity.value, min_dist); @@ -356,7 +356,7 @@ int touchpad_read_device(void) int button_read_device(void) { int res = 0; - if(!imx233_pinctrl_get_gpio_mask(1, 0x40000000)) + if(!imx233_pinctrl_get_gpio(1, 30)) res |= BUTTON_VOL_DOWN; /* The imx233 uses the voltage on the PSWITCH pin to detect power up/down * events as well as recovery mode. Since the power button is the power button -- cgit v1.2.3