Hi All,
I have been having some problems setting up the GPIO on my omapl138.
By modifying the kernel (I am using the davinci psp) I have been able to access the relevant GPIO's and have successfully toggled the values when setup as output pins.
When I modify the pin to be an input, I get no change from the button wired up.
I am wondering what additional changes I may need to make in the kernel to enable input values to be modified.
The process I have followed to setup the pinmuxing:
include/mach/mux.h
- add relevant identifiers for da850 (DA850_GPIO7_3 etc)
da850.c
- added to the mux_config struct
MUX_CFG(DA850, GPIO7_3, 17, 24, 15, 8, false)
then in the board file I have added the necessary initialization routine.
As I mentioned this all successfully exports my pin to user space and they can be access via sysfs and toggled - but only as output pins.
I think that the values in my MUX_CFG above must be incorrect (possibly the MODE_MASK - 15), but I am a little stumped as to what the values should be for different GPIO applications.
I can post any code, info etc etc. Any help would be greatly appreciated!
Thanks in advance,
George