summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/touchscreen-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-02-19 12:56:22 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2014-02-20 13:53:39 +0100
commitfd0a86a572038ef091b116e860d262137245d75a (patch)
tree7429f856ad3b34e4bbd845bee2b96ae60afda4ca /firmware/target/arm/imx233/touchscreen-imx233.c
parent961498d58af174e6a99047113b668dedd72fb6db (diff)
downloadrockbox-fd0a86a572038ef091b116e860d262137245d75a.tar.gz
rockbox-fd0a86a572038ef091b116e860d262137245d75a.tar.bz2
rockbox-fd0a86a572038ef091b116e860d262137245d75a.zip
imx233: split lradc channel setup into source and sampling parameters
Change-Id: I1be43fec9622cb78fc5737e5ed8d7fda17baf576
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)
imx233_lradc_enable_touch_detect_irq(false);
imx233_lradc_enable_channel_irq(touch_chan, true);
/* measure channel, no accumulation */
- imx233_lradc_setup_channel(touch_chan, false, true, NR_SAMPLES - 1, src);
+ imx233_lradc_setup_source(touch_chan, false, src);
+ imx233_lradc_setup_sampling(touch_chan, true, NR_SAMPLES - 1);
imx233_lradc_clear_channel(touch_chan);
/* use a delay */
imx233_lradc_setup_delay(touch_delay, 1 << touch_chan, 1 << touch_delay,