* [U-Boot] i.MX51 How to use and program LED's
@ 2010-03-25 15:38 Carlo McKee
2010-03-25 16:51 ` Stefano Babic
2010-03-25 19:09 ` Wolfgang Denk
0 siblings, 2 replies; 3+ messages in thread
From: Carlo McKee @ 2010-03-25 15:38 UTC (permalink / raw)
To: u-boot
Hello,
I need help on how to write a simple routine in C to turn on and off the
general purpose diagnostic LED's of the iMX51 EVK board.
I am developing under Linux. Any help appreciated.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] i.MX51 How to use and program LED's
2010-03-25 15:38 [U-Boot] i.MX51 How to use and program LED's Carlo McKee
@ 2010-03-25 16:51 ` Stefano Babic
2010-03-25 19:09 ` Wolfgang Denk
1 sibling, 0 replies; 3+ messages in thread
From: Stefano Babic @ 2010-03-25 16:51 UTC (permalink / raw)
To: u-boot
Carlo McKee wrote:
> Hello,
>
> I need help on how to write a simple routine in C to turn on and off the
> general purpose diagnostic LED's of the iMX51 EVK board.
> I am developing under Linux. Any help appreciated.
As I cann see from schematics, the diagnostic led is connected with
GPIO2_6. At the moment, there are no accessors function to access the
gpio, in the same way we have for i.MX31. It should be nice to have it,
however ;)
Anyway, you can directly access to the gpio controller with readl/writel
accessors. You can see an example (read) in mx51evk.c in board_mmc_getcd().
Check the gpio controller part of the manual, you need at least to set
the direction as output for the GPIO2_6 pin before setting it.
Regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] i.MX51 How to use and program LED's
2010-03-25 15:38 [U-Boot] i.MX51 How to use and program LED's Carlo McKee
2010-03-25 16:51 ` Stefano Babic
@ 2010-03-25 19:09 ` Wolfgang Denk
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2010-03-25 19:09 UTC (permalink / raw)
To: u-boot
Dear Carlo McKee,
In message <aa75524c1003250838l4cfb3d72wd4967a0935a0b235@mail.gmail.com> you wrote:
>
> I am developing under Linux. Any help appreciated.
You might get more help when posting on a Linux mailing list - here
you are completely off topic.
Before reposting ona Linux mailing list: chek if you have cinfigured
the GPIO driver in your kernel, and explain in detail how you tried to
access it, and what exactly is not working.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Randal said it would be tough to do in sed. He didn't say he didn't
understand sed. Randal understands sed quite well. Which is why he
uses Perl. :-) - Larry Wall in <7874@jpl-devvax.JPL.NASA.GOV>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-03-25 19:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-25 15:38 [U-Boot] i.MX51 How to use and program LED's Carlo McKee
2010-03-25 16:51 ` Stefano Babic
2010-03-25 19:09 ` Wolfgang Denk
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.