All of lore.kernel.org
 help / color / mirror / Atom feed
From: Samuel Egli <samuel.egli@siemens.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/5] siemens: change LED indication in DFU mode
Date: Thu, 24 Apr 2014 17:57:55 +0200	[thread overview]
Message-ID: <1398355077-6661-5-git-send-email-samuel.egli@siemens.com> (raw)
In-Reply-To: <1398355077-6661-1-git-send-email-samuel.egli@siemens.com>

In order to have the same LED indication like in another product
when ready for updating, enable only red led and disable status
LED when entering DFU mode.

The status LED is only switched off when defined in board file.

Signed-off-by: Samuel Egli <samuel.egli@siemens.com>
Cc: Roger Meier <r.meier@siemens.com>
Cc: Heiko Schocher <hs@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
---
 include/configs/dxr2.h                 |    3 ++-
 include/configs/siemens-am33x-common.h |    6 +++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/include/configs/dxr2.h b/include/configs/dxr2.h
index 4612f85..76e6cac 100644
--- a/include/configs/dxr2.h
+++ b/include/configs/dxr2.h
@@ -24,7 +24,8 @@
 #undef CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC
 
 #define BOARD_DFU_BUTTON_GPIO	27
-#define BOARD_DFU_BUTTON_LED	64
+#define BOARD_DFU_BUTTON_LED	64	/* red LED */
+#define BOARD_STATUS_LED	103	/* green LED */
 #define GPIO_LAN9303_NRST	88	/* GPIO2_24 = gpio88 */
 
 #undef CONFIG_DOS_PARTITION
diff --git a/include/configs/siemens-am33x-common.h b/include/configs/siemens-am33x-common.h
index 721c4e6..261b348 100644
--- a/include/configs/siemens-am33x-common.h
+++ b/include/configs/siemens-am33x-common.h
@@ -402,7 +402,11 @@
 	"dfu_args=run bootargs_defaults;" \
 		"setenv bootargs ${bootargs} ;" \
 		"mtdparts default; " \
-		"dfu 0 nand 0; \0" \
+		"led dfu 1;" \
+		"led stat 0;" \
+		"dfu 0 nand 0;" \
+		"led dfu 0;" \
+		"led stat 1;\0" \
 		"dfu_alt_info=" DFU_ALT_INFO_NAND "\0" \
 	"net_args=run bootargs_defaults;" \
 		"mtdparts default;" \
-- 
1.7.10.4

  parent reply	other threads:[~2014-04-24 15:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-24 15:57 [U-Boot] [PATCH 0/5] siemens: update and cleanup code Samuel Egli
2014-04-24 15:57 ` [U-Boot] [PATCH 1/5] siemens: cosmetic: remove unused and rename defines Samuel Egli
2014-05-14  1:35   ` [U-Boot] [U-Boot, " Tom Rini
2014-04-24 15:57 ` [U-Boot] [PATCH 2/5] siemens: update DDR3 parameters for dxr2 Samuel Egli
2014-05-14  1:35   ` [U-Boot] [U-Boot,2/5] " Tom Rini
2014-04-24 15:57 ` [U-Boot] [PATCH 3/5] siemens: add led cmd for flexible LED control Samuel Egli
2014-05-14  1:35   ` [U-Boot] [U-Boot, " Tom Rini
2014-04-24 15:57 ` Samuel Egli [this message]
2014-05-14  1:35   ` [U-Boot] [U-Boot, 4/5] siemens: change LED indication in DFU mode Tom Rini
2014-04-24 15:57 ` [U-Boot] [PATCH 5/5] siemens: cosmetic: rename project_dir Samuel Egli
2014-05-14  1:35   ` [U-Boot] [U-Boot,5/5] " Tom Rini

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=1398355077-6661-5-git-send-email-samuel.egli@siemens.com \
    --to=samuel.egli@siemens.com \
    --cc=u-boot@lists.denx.de \
    /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 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.