summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEgli, Samuel <samuel.egli@siemens.com>2014-04-24 17:57:55 +0200
committerTom Rini <trini@ti.com>2014-05-13 19:43:00 -0400
commit84112b51719fa1a97e41410e1d8853ef3d6202ef (patch)
tree4e01ff4094271e2ea5067d742cbb963da016de26 /include
parent111c8e40934ca8dfc0c7faf7eeb836a823098f0f (diff)
downloadu-boot-imx-84112b51719fa1a97e41410e1d8853ef3d6202ef.zip
u-boot-imx-84112b51719fa1a97e41410e1d8853ef3d6202ef.tar.gz
u-boot-imx-84112b51719fa1a97e41410e1d8853ef3d6202ef.tar.bz2
siemens: change LED indication in DFU mode
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>
Diffstat (limited to 'include')
-rw-r--r--include/configs/dxr2.h3
-rw-r--r--include/configs/siemens-am33x-common.h6
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;" \