summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/touchscreen-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-06-16 16:43:05 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-06-16 16:57:54 +0200
commitd815cf3c79321eb5db66cd18a77e3713943560a8 (patch)
treea7305ac2a115bdec7b713e05a4b291b3224ab0c0 /firmware/target/arm/imx233/touchscreen-imx233.c
parent8517cf8bed758120bdf95b5880d17ac277d21d74 (diff)
downloadrockbox-d815cf3c79321eb5db66cd18a77e3713943560a8.tar.gz
rockbox-d815cf3c79321eb5db66cd18a77e3713943560a8.tar.bz2
rockbox-d815cf3c79321eb5db66cd18a77e3713943560a8.zip
imx233: rewrite lradc using new register headers
Change-Id: I06e4467c0ffe33145e6192528b074a23a8df67cc
Diffstat (limited to 'firmware/target/arm/imx233/touchscreen-imx233.c')
-rw-r--r--firmware/target/arm/imx233/touchscreen-imx233.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/imx233/touchscreen-imx233.c b/firmware/target/arm/imx233/touchscreen-imx233.c
index 475103c3d4..4f35110df7 100644
--- a/firmware/target/arm/imx233/touchscreen-imx233.c
+++ b/firmware/target/arm/imx233/touchscreen-imx233.c
@@ -82,13 +82,13 @@ static void enter_state(enum touch_state_t state)
imx233_lradc_enable_touch_detect_irq(true);
break;
case TOUCH_STATE_MEASURE_X:
- kick_measure(true, false, false, HW_LRADC_CHANNEL_YPLUS);
+ kick_measure(true, false, false, LRADC_SRC_YPLUS);
break;
case TOUCH_STATE_MEASURE_Y:
- kick_measure(false, true, false, HW_LRADC_CHANNEL_XPLUS);
+ kick_measure(false, true, false, LRADC_SRC_XPLUS);
break;
case TOUCH_STATE_VERIFY:
- kick_measure(false, false, true, HW_LRADC_CHANNEL_YPLUS);
+ kick_measure(false, false, true, LRADC_SRC_YPLUS);
break;
}
}