summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/touchscreen-imx233.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx233/touchscreen-imx233.c')
-rw-r--r--firmware/target/arm/imx233/touchscreen-imx233.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/touchscreen-imx233.c b/firmware/target/arm/imx233/touchscreen-imx233.c
index 8868f3e2b6..7a784db5a3 100644
--- a/firmware/target/arm/imx233/touchscreen-imx233.c
+++ b/firmware/target/arm/imx233/touchscreen-imx233.c
@@ -115,7 +115,8 @@ static void kick_measure(bool pull_x, bool pull_y, bool detect, int src)
115 imx233_lradc_enable_touch_detect_irq(false); 115 imx233_lradc_enable_touch_detect_irq(false);
116 imx233_lradc_enable_channel_irq(touch_chan, true); 116 imx233_lradc_enable_channel_irq(touch_chan, true);
117 /* measure channel, no accumulation */ 117 /* measure channel, no accumulation */
118 imx233_lradc_setup_channel(touch_chan, false, true, NR_SAMPLES - 1, src); 118 imx233_lradc_setup_source(touch_chan, false, src);
119 imx233_lradc_setup_sampling(touch_chan, true, NR_SAMPLES - 1);
119 imx233_lradc_clear_channel(touch_chan); 120 imx233_lradc_clear_channel(touch_chan);
120 /* use a delay */ 121 /* use a delay */
121 imx233_lradc_setup_delay(touch_delay, 1 << touch_chan, 1 << touch_delay, 122 imx233_lradc_setup_delay(touch_delay, 1 << touch_chan, 1 << touch_delay,