public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/2] arm nomadik: gpio and i2c
@ 2009-07-19 11:01 Alessandro Rubini
  2009-07-19 17:13 ` Wolfgang Denk
  2009-07-20  7:40 ` Heiko Schocher
  0 siblings, 2 replies; 20+ messages in thread
From: Alessandro Rubini @ 2009-07-19 11:01 UTC (permalink / raw)
  To: u-boot

This adds gpio and i2c support for the Nomadik evaluation kit. They
are needed to turn on the LCD backlight in order to later add LCD
support.

I have one doubt and some questions on gpio:

To use soft_i2c I need to define some macros in the config file.
Instead of writing hard numbers there I called the gpio functions, but
the config file is inluded from asm sources as well.  I don't think my
approach is beautiful at all (both #ifndef __ASSEMBLY__ and #include
"../board/"), but I didn't find a better solution.

I would like to add a gpio command, and I've found no generic gpio
stuff.  Only one board (cm-bf527) has a gpio commands, but quite a few
have similar commands to set leds or other bits.  Is time ripe for a
generic gpio driver with board-specific limits and operations? Would
that be interesting for u-boot-next?  Should I process with a board-specific
gpio command by now?

/alessandro


Alessandro Rubini (2):
  arm nomadik: add gpio support
  arm nomadik: add i2c

 board/st/nhk8815/Makefile  |    2 +-
 board/st/nhk8815/gpio.c    |   99 ++++++++++++++++++++++++++++++++++++++++++++
 board/st/nhk8815/gpio.h    |   42 ++++++++++++++++++
 board/st/nhk8815/nhk8815.c |   16 ++++++-
 include/configs/nhk8815.h  |   18 ++++++++-
 5 files changed, 173 insertions(+), 4 deletions(-)
 create mode 100644 board/st/nhk8815/gpio.c
 create mode 100644 board/st/nhk8815/gpio.h

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

end of thread, other threads:[~2009-07-28 13:49 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-19 11:01 [U-Boot] [PATCH 0/2] arm nomadik: gpio and i2c Alessandro Rubini
2009-07-19 17:13 ` Wolfgang Denk
2009-07-20  7:55   ` Heiko Schocher
2009-07-20  8:09     ` Alessandro Rubini
2009-07-20  9:23       ` Heiko Schocher
2009-07-20  9:31         ` Alessandro Rubini
2009-07-20  9:48           ` Heiko Schocher
2009-07-20 15:14         ` Wolfgang Denk
2009-07-21  6:31           ` Heiko Schocher
2009-07-20 15:12     ` Wolfgang Denk
2009-07-21  6:11       ` Heiko Schocher
2009-07-21  7:19         ` Wolfgang Denk
2009-07-20  7:40 ` Heiko Schocher
2009-07-28  7:16   ` Daniel Gorsulowski
2009-07-28  9:39     ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-28 10:25     ` Heiko Schocher
2009-07-28 10:55       ` Wolfgang Denk
2009-07-28 13:02         ` Heiko Schocher
2009-07-28 13:22           ` Wolfgang Denk
2009-07-28 13:49             ` Heiko Schocher

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