omap GPIO programming
Hi all,
I want to use GPIOs 87,142,140 in omap2430. I am using a custom kernel. i wrote a kernel modules with the following API to use the 3 pins
1)omap_request_gpio
2)omap_set_gpio_direction
3)omap_set_gpio_dataout
4)omap_free_gpio
But i could able to write data only to GPIO 140. other GPIOs are not showing any voltage changes to writing 0 or 1 to them.
Whether i have to set pin muxing or use any other kernel api to use the GPIOS 142 and 87?? please help me.
Regards,
Arun
arun c stated on 10/24/2007 4:05 AM:
Quoted 2 lines
Whether i have to set pin muxing or use any other kernel api to use the GPIOS 142 and 87?? please help me.
in general yes. I usually refer to the corresponding OMAP Data Manual to get which ballout I am interested in, and then see the TRM for the corresponding register to set. omap2430 pin muxing is very straight forward and should be easy to do.
Regards,
Nishanth Menon