diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2013-11-19 19:04:03 +0000 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-11-19 19:04:03 +0000 |
commit | c2c2274e0adacc1a0c5bdb57fa1367badb7b047f (patch) | |
tree | de5477d9b65a50bf5b5e693b1254ac653564c925 /firmware/target/arm/imx233/debug-imx233.c | |
parent | 287be81c16ef52484403c9f08bbf80465da6263b (diff) | |
download | rockbox-c2c2274e0adacc1a0c5bdb57fa1367badb7b047f.tar.gz rockbox-c2c2274e0adacc1a0c5bdb57fa1367badb7b047f.zip |
imx233: factor adc accross targets
The old code allowed each target to specify its adc targets but this proved
useless since the target rely directly on imx233/lradc for input method and
generic adc is mostly used for battery and debug. Remove all target specific
files and provide a generic implemenation. The targets can still specify a
battery temperature channel in powermgmt-target.h
Change-Id: I68cf2e3e46379d174ac6d774ffb237bb15a19ae3
Diffstat (limited to 'firmware/target/arm/imx233/debug-imx233.c')
-rw-r--r-- | firmware/target/arm/imx233/debug-imx233.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/firmware/target/arm/imx233/debug-imx233.c b/firmware/target/arm/imx233/debug-imx233.c index 8abe8e1c40..63172c8c1e 100644 --- a/firmware/target/arm/imx233/debug-imx233.c +++ b/firmware/target/arm/imx233/debug-imx233.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include "lcd.h" | 24 | #include "lcd.h" |
25 | #include "font.h" | 25 | #include "font.h" |
26 | #include "adc.h" | 26 | #include "adc.h" |
27 | #include "adc-imx233.h" | ||
28 | #include "power-imx233.h" | 27 | #include "power-imx233.h" |
29 | #include "clkctrl-imx233.h" | 28 | #include "clkctrl-imx233.h" |
30 | #include "powermgmt-imx233.h" | 29 | #include "powermgmt-imx233.h" |
@@ -269,8 +268,7 @@ bool dbg_hw_info_lradc(void) | |||
269 | lcd_putsf(0, 0, "Battery(mV) %d", _battery_voltage()); | 268 | lcd_putsf(0, 0, "Battery(mV) %d", _battery_voltage()); |
270 | for(unsigned i = 0; i < NUM_ADC_CHANNELS; i++) | 269 | for(unsigned i = 0; i < NUM_ADC_CHANNELS; i++) |
271 | { | 270 | { |
272 | lcd_putsf(0, i + 1, "%s %d", imx233_adc_channel_name[i], | 271 | lcd_putsf(0, i + 1, "%s %d", adc_name(i), adc_read(i)); |
273 | adc_read(i)); | ||
274 | } | 272 | } |
275 | 273 | ||
276 | lcd_update(); | 274 | lcd_update(); |