* OMAP5912 OSK & GPIO
[not found] <20060523170002.3B4B88062C@linux.omap.com>
@ 2006-05-24 15:46 ` Richard Copeman
2006-05-24 16:09 ` Dirk Behme
0 siblings, 1 reply; 2+ messages in thread
From: Richard Copeman @ 2006-05-24 15:46 UTC (permalink / raw)
To: linux-omap-open-source
Hi,
Does anybody have any examples for configuring and using the GPIO pins?
I'm trying to toggle GPIO7. I set the data direction bit to output and set
the output pin register bit to high. I have not changed the default pin
muxing, so I assume I should be getting a signal on pin L15, which according
to my schematics is pin 25 on connector P12. I put a scope on there and
don't see anything ;-(
Am I missing some vital part of the puzzle?
Thanks,
Richard.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: OMAP5912 OSK & GPIO
2006-05-24 15:46 ` OMAP5912 OSK & GPIO Richard Copeman
@ 2006-05-24 16:09 ` Dirk Behme
0 siblings, 0 replies; 2+ messages in thread
From: Dirk Behme @ 2006-05-24 16:09 UTC (permalink / raw)
To: Richard Copeman; +Cc: linux-omap-open-source
Richard Copeman wrote:
> Hi,
>
> Does anybody have any examples for configuring and using the GPIO pins?
> I'm trying to toggle GPIO7. I set the data direction bit to output and set
> the output pin register bit to high. I have not changed the default pin
> muxing, so I assume I should be getting a signal on pin L15, which according
> to my schematics is pin 25 on connector P12. I put a scope on there and
> don't see anything ;-(
Try to use GPIO framework. See for example
/arch/arm/mach-omap1/leds.c
/arch/arm/mach-omap1/leds-osk.c
#include <asm/arch/gpio.h>
#include <asm/arch/mux.h>
omap_cfg_reg(P18_1610_GPIO3); // request pin from pinmux,
depends on chip
if (omap_request_gpio(3) == 0) // request GPIO
omap_set_gpio_direction(3, 0); // set it to output
omap_set_gpio_dataout(3, 1); // set it
Regards
Dirk
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-05-24 16:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20060523170002.3B4B88062C@linux.omap.com>
2006-05-24 15:46 ` OMAP5912 OSK & GPIO Richard Copeman
2006-05-24 16:09 ` Dirk Behme
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox