diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2014-02-19 12:56:22 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2014-02-20 13:53:39 +0100 |
commit | fd0a86a572038ef091b116e860d262137245d75a (patch) | |
tree | 7429f856ad3b34e4bbd845bee2b96ae60afda4ca /firmware/target/arm/imx233/touchscreen-imx233.c | |
parent | 961498d58af174e6a99047113b668dedd72fb6db (diff) | |
download | rockbox-fd0a86a572038ef091b116e860d262137245d75a.tar.gz 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.c | 3 |
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, |