From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: LED framework
Date: Sat, 18 Dec 2010 16:15:02 +0100 [thread overview]
Message-ID: <1292685309-32326-1-git-send-email-s.hauer@pengutronix.de> (raw)
Hi All,
The following series adds generic LED support for barebox.
Included is an infrastructure to register gpios as LEDs and
generic triggers for LEDs (Heartbeat, network activity). LEDs and
triggers can be controlled in C code and also on the command line.
The last patch only contains a small usage example, I'm not going
to commit it.
I have implemented this patchset completely remote with printfs in
the gpio functions, so I haven't seen any LED blinking. I hope that
the triggers are not too short for a LED to actually blink.
Sascha
The following changes since commit fad11e85641d27f683e2866ec5700cafd5868179:
eth: fix 'warning: No MAC address set' when using EEPROM MAC (2010-12-16 08:30:14 +0100)
are available in the git repository at:
git://git.pengutronix.de/git/barebox.git led
Marc Kleine-Budde (1):
Add generic poll infrastructure
Sascha Hauer (6):
basic LED support
LED: Add gpio LED support
LED: Add LED trigger support
LED: Add led command
LED: Add trigger command
pcm038: led testing. Not to be committed
arch/arm/boards/pcm038/pcm038.c | 24 ++++++++-
commands/Kconfig | 15 +++++
commands/Makefile | 2 +
commands/led.c | 60 ++++++++++++++++++++
commands/trigger.c | 106 ++++++++++++++++++++++++++++++++++
common/Kconfig | 3 +
common/Makefile | 1 +
common/console.c | 5 ++
common/poller.c | 45 +++++++++++++++
drivers/Kconfig | 1 +
drivers/Makefile | 1 +
drivers/led/Kconfig | 13 ++++
drivers/led/Makefile | 3 +
drivers/led/core.c | 119 +++++++++++++++++++++++++++++++++++++++
drivers/led/led-gpio.c | 92 ++++++++++++++++++++++++++++++
include/led.h | 69 ++++++++++++++++++++++
include/net.h | 3 +
include/poller.h | 31 ++++++++++
lib/vsprintf.c | 4 +
net/eth.c | 20 ++++++-
net/net.c | 21 +++++--
21 files changed, 631 insertions(+), 7 deletions(-)
create mode 100644 commands/led.c
create mode 100644 commands/trigger.c
create mode 100644 common/poller.c
create mode 100644 drivers/led/Kconfig
create mode 100644 drivers/led/Makefile
create mode 100644 drivers/led/core.c
create mode 100644 drivers/led/led-gpio.c
create mode 100644 include/led.h
create mode 100644 include/poller.h
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2010-12-18 15:15 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-18 15:15 Sascha Hauer [this message]
2010-12-18 15:15 ` [PATCH 1/7] Add generic poll infrastructure Sascha Hauer
2010-12-18 15:28 ` Sascha Hauer
2010-12-18 15:15 ` [PATCH 2/7] basic LED support Sascha Hauer
2010-12-18 16:38 ` Jean-Christophe PLAGNIOL-VILLARD
2010-12-18 17:18 ` Sascha Hauer
2010-12-18 16:48 ` Jean-Christophe PLAGNIOL-VILLARD
2010-12-18 19:06 ` Belisko Marek
2010-12-19 21:31 ` Marc Reilly
2010-12-20 8:27 ` Sascha Hauer
2010-12-18 15:15 ` [PATCH 3/7] LED: Add gpio " Sascha Hauer
2010-12-18 16:41 ` Jean-Christophe PLAGNIOL-VILLARD
2010-12-18 17:18 ` Sascha Hauer
2010-12-18 15:15 ` [PATCH 4/7] LED: Add LED trigger support Sascha Hauer
2010-12-18 16:51 ` Belisko Marek
2010-12-18 17:21 ` Sascha Hauer
2010-12-18 15:15 ` [PATCH 5/7] LED: Add led command Sascha Hauer
2010-12-18 16:45 ` Jean-Christophe PLAGNIOL-VILLARD
2010-12-18 17:24 ` Sascha Hauer
2010-12-18 15:15 ` [PATCH 6/7] LED: Add trigger command Sascha Hauer
2010-12-18 15:15 ` [PATCH 7/7] pcm038: led testing. Not to be committed Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1292685309-32326-1-git-send-email-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox