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 @@ #include "lcd.h" #include "font.h" #include "adc.h" -#include "adc-imx233.h" #include "power-imx233.h" #include "clkctrl-imx233.h" #include "powermgmt-imx233.h" @@ -269,8 +268,7 @@ bool dbg_hw_info_lradc(void) lcd_putsf(0, 0, "Battery(mV) %d", _battery_voltage()); for(unsigned i = 0; i < NUM_ADC_CHANNELS; i++) { - lcd_putsf(0, i + 1, "%s %d", imx233_adc_channel_name[i], - adc_read(i)); + lcd_putsf(0, i + 1, "%s %d", adc_name(i), adc_read(i)); } lcd_update(); |