]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
siemens: change LED indication in DFU mode
authorEgli, Samuel <samuel.egli@siemens.com>
Thu, 24 Apr 2014 15:57:55 +0000 (17:57 +0200)
committerTom Rini <trini@ti.com>
Tue, 13 May 2014 23:43:00 +0000 (19:43 -0400)
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
include/configs/siemens-am33x-common.h

index 4612f858efd3dc867b475d1965286b7d7642e1fe..76e6cac77cad006f980a9905c39ce961ab011f18 100644 (file)
@@ -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
index 721c4e6badc815df941c2840606c1ccb8d1b4fc1..261b348baed69f30cdac56987f5c9ebbee6f8ca2 100644 (file)
        "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;" \