imx233: fix lradc/adc for stmp3600 and stmp3700

The lradc architecture of the stmp3600 is rather different:
only channels 6 and 7 have configurable source and we need to
take care when allocating channels so that we can actually
measure the right channel! Delegate die temperature sensing to
the power block on stmp3600.

Change-Id: I0860eb4ea98240facc3d4a19d61684eca5f630cc
This commit is contained in:
Amaury Pouly 2013-06-16 20:59:36 +02:00
parent 239219ee70
commit f4fdf1ffe2
5 changed files with 83 additions and 8 deletions

View file

@ -167,7 +167,7 @@ static void touch_channel_irq(int chan)
void imx233_touchscreen_init(void)
{
touch_chan = imx233_lradc_acquire_channel(TIMEOUT_NOBLOCK);
touch_chan = imx233_lradc_acquire_channel(LRADC_SRC_XPLUS, TIMEOUT_NOBLOCK);
touch_delay = imx233_lradc_acquire_delay(TIMEOUT_NOBLOCK);
if(touch_chan < 0 || touch_delay < 0)
panicf("Cannot acquire channel and delays for touchscreen measurement");