fuze+: add unknown channel to debug menu

imx233: always divide physical channels by two for wider range

The Fuze+ OF monitors channel 2 but I'm unable to determine the meaning of it.
Print the value on the debug menu so that people can have a look at it.

Change-Id: I8a942febeafbce06014178abda12e38a16c26664
This commit is contained in:
Amaury Pouly 2012-03-15 18:47:23 +01:00
parent 9caffa8bf7
commit e07b22f27e
3 changed files with 5 additions and 2 deletions

View file

@ -76,7 +76,7 @@ int adc_read_physical(int src)
{
int virt = imx233_lradc_acquire_channel(TIMEOUT_BLOCK);
// divide by two for wider ranger
imx233_lradc_setup_channel(virt, false, false, 0, src);
imx233_lradc_setup_channel(virt, true, false, 0, src);
int val = adc_read_physical_ex(virt);
imx233_lradc_release_channel(virt);
return val;