AIN1, 2, 3

alek
hello all
i´m trying to make an app for the mini2440(FriendlyARM) but i need all the
adc i can use (AIN0-3) but so far i have problems with the drivers, i
search on the internet and there are many topic about that but nothing
concrete .... what i need is a guide of how i can enable this pins for use
.... even as a module or Kernel compilation but well explain please ....
best regards ... sorry for my english

linux_support
Hi
In the drivers/char folder of the kernel source code , you will find one
file called mini2440_adc.c. In that driver file , in the function
s3c2410_adc_open , you will see they have given only adcdev.channel=0 , so
this driver will only read from AIN0. You can modify the driver by adding
one ioctl function through which you can inform the driver the channel
which you want to read. 

Regards
linuxsupport@vectorindia.org
VECTOR Institute 
http://www.vectorindia.org

ramon
Hi, I'm having the same problem with a arm11 6410. 
I need to use the AIN1. I don't have the mini2440_adc.c file, but adc.c.
I see that they only use:
static int s3c2410_adc_open(struct inode *inode, struct file *filp)
{
  init_waitqueue_head(&(adcdev.wait));

  adcdev.channel=0;
  adcdev.prescale=0xff;

  DPRINTK("adc opened\n");
  return 0;
}

I added:
adcdev.channel=0;
adcdev.channel=1;
but no resutls.

Could anyone explain me how and where I have to add one ioctl function??