mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* GPIO commands on OMAP4
@ 2012-04-05  9:40 Patrick
  2012-04-05 12:45 ` Patrick
  2012-04-05 13:49 ` Sascha Hauer
  0 siblings, 2 replies; 6+ messages in thread
From: Patrick @ 2012-04-05  9:40 UTC (permalink / raw)
  To: barebox

Dear mailing-list,

I am using a pcm049 phyCORE omap4430 module from Phytec with BareBox 
2011.09.0 patched with BSP from Phytec.

I would like to use the GPIO command to read a switch at startup. This 
chip is connected on ABE_MCBSP1_DX (gpio_116). I have edited the 
boards/pcm049/mux.c files to change the configuration of this GPIO as 
follow: {ABE_MCBSP1_DX, (DIS | IEN | M3)} instead of {ABE_MCBSP1_DX, 
(SAFE_MODE)}.

I then use the "gpio_get_value 116" command followed by "echo $?" to 
read the value. I always read a 0. On Linux I could read the right value 
depending of the position of the switch, so it's not an hardware problems.

I have tried with one of the two LEDs on the module (gpio_152) and I 
could change the LED state and read it back with gpio_get_value.

I do not understand what I am doing wrong. Any help will be appreciated.

Patrick



_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-04-05 16:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-05  9:40 GPIO commands on OMAP4 Patrick
2012-04-05 12:45 ` Patrick
2012-04-05 13:49 ` Sascha Hauer
2012-04-05 14:38   ` Patrick
2012-04-05 14:58     ` Patrick
2012-04-05 16:19       ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox