This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADC Driver AM335x

hi,

am plan to write a new driver for AM335x and create a node in dev

fallowing some procedure based on data sheet

enable stepconfig ,set channel etc .

steps :

diff = diff |(1 << 25);
    iowrite32(diff,base_addr +  IDLECONFIG);
 
    stepen = stepen |((1 << 1) ;                //enabled 1 stepconfig register/
    iowrite32(stepen,base_addr + STEPENABLE);

    stpcnfg = stpcnfg|((1 << 20)|(1 << 21 )|(1 << 19)|(1 << 5)|(1 << 9)|(1 << 7));
    iowrite32(stpcnfg,base_addr + STEPCONFIG1);     //stepconfig reg 1

    cntl = cntl | ((1 << 0) | (1 << 1)| (1 << 2)); //TSC_ADC_SS enble,step_write protected
    iowrite32(cntl,base_addr + 0x40);

     data = ioread32(base_addr + FIF0DATA); //FIFO0_data

but not get exact output

please suggest me how to write new driver for adc in continuous mode

steps for how to enable registers.

its urgent requirement

Thanks & Regards,

Naveen Kumar.