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.

gpio misbehavoiur when device resume from suspend

Other Parts Discussed in Thread: DM3730

Hi All,

I am working on varisite SOM module which is having DM3730 omap3 processor on which we are running Android Gingerbread.

We are using gpio 101 to be always "output with zero"  for some purpose.

We did the pin mux for this gpio as :

OMP3_MUX(CAM_D2,                 OMPA_MUX_MODE4,OMAP_PIN_OUTPUT);

This configuration will write to the  pad configuration register:0x4800 2118.

We are getting 0 volts on the line.

But we are getting one pulse on the line when the device resumes from the suspend state,which should not happen for us.

Is it expected behaviour?

Now I did some extra configuration using gpio driver calls.

gpio_direction_output(101,0);

This will write to some gpio control register of a particular gpio bank.

Now I did not get the the above issue.

Can anyone clear my doubts on gpio cotrolling.

1.How a  value will be driven on a gpio signal.Means by configuring only the pad configuration register ,can it drive? or is it mandatory to configure the specific gpio controle register?(Ex:SET_DATAn,IN_DATAn,OUT_DATAn....)

2.If there is mis match between pad configuration register and gpio control register ,which configuratio will be taken on the signal?

Ex:If I set the gpio as input signal in the pad configuartion register,but  I set the signal as output in the gpio control registers.

Please give your comments.

Thanks,

Balakrishna.