]> git.sur5r.net Git - u-boot/commitdiff
status_led: Kconfig migration
authorUri Mashiach <uri.mashiach@compulab.co.il>
Thu, 19 Jan 2017 08:51:45 +0000 (10:51 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 21 Jan 2017 20:12:33 +0000 (15:12 -0500)
Move all of the status LED feature to drivers/led/Kconfig.
The LED status definitions were moved from the board configuration
files to the defconfig files.

TBD: Move all of the definitions in the include/status_led.h to the
relevant board's defconfig files.

Tested boards: CL-SOM-AM57x, CM-T335

Signed-off-by: Uri Mashiach <uri.mashiach@compulab.co.il>
89 files changed:
arch/arm/cpu/arm920t/ep93xx/led.c
arch/powerpc/include/asm/status_led.h
arch/powerpc/lib/interrupts.c
board/BuS/eb_cpu5282/eb_cpu5282.c
board/bf533-stamp/bf533-stamp.c
board/compulab/cm_t335/cm_t335.c
board/compulab/cm_t35/cm_t35.c
board/compulab/cm_t3517/cm_t3517.c
board/corscience/tricorder/led.c
board/corscience/tricorder/tricorder.c
board/isee/igep00x0/igep00x0.c
board/motionpro/motionpro.c
board/olimex/mx23_olinuxino/mx23_olinuxino.c
board/samtec/vining_fpga/socfpga.c
board/ti/beagle/Makefile
board/ti/beagle/beagle.c
board/ti/beagle/led.c
cmd/Makefile
cmd/ide.c
cmd/led.c
common/board_r.c
configs/TQM823L_defconfig
configs/TQM823M_defconfig
configs/TQM850L_defconfig
configs/TQM850M_defconfig
configs/TQM855L_defconfig
configs/TQM855M_defconfig
configs/TQM860L_defconfig
configs/TQM860M_defconfig
configs/TQM862L_defconfig
configs/TQM862M_defconfig
configs/TQM866M_defconfig
configs/TQM885D_defconfig
configs/cl-som-am57x_defconfig
configs/cm_t335_defconfig
configs/cm_t3517_defconfig
configs/cm_t35_defconfig
configs/eb_cpu5282_defconfig
configs/eb_cpu5282_internal_defconfig
configs/edb9315a_defconfig
configs/igep0020_defconfig
configs/igep0030_defconfig
configs/motionpro_defconfig
configs/mx23_olinuxino_defconfig
configs/omap3_beagle_defconfig
configs/socfpga_vining_fpga_defconfig
configs/tqma6s_wru4_mmc_defconfig
configs/tricorder_defconfig
configs/tricorder_flash_defconfig
configs/v38b_defconfig
drivers/misc/Makefile
drivers/misc/gpio_led.c
drivers/misc/pca9551_led.c
drivers/misc/status_led.c
include/common.h
include/configs/PATI.h
include/configs/TQM823L.h
include/configs/TQM823M.h
include/configs/TQM850L.h
include/configs/TQM850M.h
include/configs/TQM855L.h
include/configs/TQM855M.h
include/configs/TQM860L.h
include/configs/TQM860M.h
include/configs/TQM862L.h
include/configs/TQM862M.h
include/configs/TQM866M.h
include/configs/TQM885D.h
include/configs/bf526-ezbrd.h
include/configs/bf533-stamp.h
include/configs/cl-som-am57x.h
include/configs/cm_t335.h
include/configs/cm_t35.h
include/configs/cm_t3517.h
include/configs/eb_cpu5282.h
include/configs/edb93xx.h
include/configs/motionpro.h
include/configs/mx23_olinuxino.h
include/configs/omap3_beagle.h
include/configs/omap3_igep00x0.h
include/configs/socfpga_vining_fpga.h
include/configs/stm32f429-discovery.h
include/configs/tqma6_wru4.h
include/configs/tricorder.h
include/configs/v38b.h
include/status_led.h
net/bootp.c
net/net.c
scripts/config_whitelist.txt

index ecceb98c756cb091369dd0326bb0a1b6a0a2c85e..402fa3a7bc960f70d93374cd885b5f20623a4afd 100644 (file)
@@ -9,16 +9,16 @@
 #include <config.h>
 #include <status_led.h>
 
-static uint8_t saved_state[2] = {STATUS_LED_OFF, STATUS_LED_OFF};
-static uint32_t gpio_pin[2] = {1 << STATUS_LED_GREEN,
-                              1 << STATUS_LED_RED};
+static uint8_t saved_state[2] = {CONFIG_LED_STATUS_OFF, CONFIG_LED_STATUS_OFF};
+static uint32_t gpio_pin[2] = {1 << CONFIG_LED_STATUS_GREEN,
+                              1 << CONFIG_LED_STATUS_RED};
 
 static inline void switch_LED_on(uint8_t led)
 {
        register struct gpio_regs *gpio = (struct gpio_regs *)GPIO_BASE;
 
        writel(readl(&gpio->pedr) | gpio_pin[led], &gpio->pedr);
-       saved_state[led] = STATUS_LED_ON;
+       saved_state[led] = CONFIG_LED_STATUS_ON;
 }
 
 static inline void switch_LED_off(uint8_t led)
@@ -26,27 +26,27 @@ static inline void switch_LED_off(uint8_t led)
        register struct gpio_regs *gpio = (struct gpio_regs *)GPIO_BASE;
 
        writel(readl(&gpio->pedr) & ~gpio_pin[led], &gpio->pedr);
-       saved_state[led] = STATUS_LED_OFF;
+       saved_state[led] = CONFIG_LED_STATUS_OFF;
 }
 
 void red_led_on(void)
 {
-       switch_LED_on(STATUS_LED_RED);
+       switch_LED_on(CONFIG_LED_STATUS_RED);
 }
 
 void red_led_off(void)
 {
-       switch_LED_off(STATUS_LED_RED);
+       switch_LED_off(CONFIG_LED_STATUS_RED);
 }
 
 void green_led_on(void)
 {
-       switch_LED_on(STATUS_LED_GREEN);
+       switch_LED_on(CONFIG_LED_STATUS_GREEN);
 }
 
 void green_led_off(void)
 {
-       switch_LED_off(STATUS_LED_GREEN);
+       switch_LED_off(CONFIG_LED_STATUS_GREEN);
 }
 
 void __led_init(led_id_t mask, int state)
@@ -56,13 +56,14 @@ void __led_init(led_id_t mask, int state)
 
 void __led_toggle(led_id_t mask)
 {
-       if (STATUS_LED_RED == mask) {
-               if (STATUS_LED_ON == saved_state[STATUS_LED_RED])
+       if (CONFIG_LED_STATUS_RED == mask) {
+               if (CONFIG_LED_STATUS_ON == saved_state[CONFIG_LED_STATUS_RED])
                        red_led_off();
                else
                        red_led_on();
-       } else if (STATUS_LED_GREEN == mask) {
-               if (STATUS_LED_ON == saved_state[STATUS_LED_GREEN])
+       } else if (CONFIG_LED_STATUS_GREEN == mask) {
+               if (CONFIG_LED_STATUS_ON ==
+                   saved_state[CONFIG_LED_STATUS_GREEN])
                        green_led_off();
                else
                        green_led_on();
@@ -71,13 +72,13 @@ void __led_toggle(led_id_t mask)
 
 void __led_set(led_id_t mask, int state)
 {
-       if (STATUS_LED_RED == mask) {
-               if (STATUS_LED_ON == state)
+       if (CONFIG_LED_STATUS_RED == mask) {
+               if (CONFIG_LED_STATUS_ON == state)
                        red_led_on();
                else
                        red_led_off();
-       } else if (STATUS_LED_GREEN == mask) {
-               if (STATUS_LED_ON == state)
+       } else if (CONFIG_LED_STATUS_GREEN == mask) {
+               if (CONFIG_LED_STATUS_ON == state)
                        green_led_on();
                else
                        green_led_off();
index 260a8319ce34ccf228ecac69742d6febe4015b86..1ae1b17e2d1b9024c30938eca1b673bc8b1fed55 100644 (file)
@@ -8,7 +8,7 @@
 #define __ASM_STATUS_LED_H__
 
 /* if not overridden */
-#ifndef CONFIG_BOARD_SPECIFIC_LED
+#ifndef CONFIG_LED_STATUS_BOARD_SPECIFIC
 # if defined(CONFIG_8xx)
 #  include <mpc8xx.h>
 # elif defined(CONFIG_MPC8260)
@@ -34,12 +34,12 @@ static inline void __led_init (led_id_t mask, int state)
 #endif
 
 #if (STATUS_LED_ACTIVE == 0)
-       if (state == STATUS_LED_ON)
+       if (state == CONFIG_LED_STATUS_ON)
                immr->STATUS_LED_DAT &= ~mask;
        else
                immr->STATUS_LED_DAT |= mask;
 #else
-       if (state == STATUS_LED_ON)
+       if (state == CONFIG_LED_STATUS_ON)
                immr->STATUS_LED_DAT |= mask;
        else
                immr->STATUS_LED_DAT &= ~mask;
@@ -59,12 +59,12 @@ static inline void __led_set (led_id_t mask, int state)
        volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
 #if (STATUS_LED_ACTIVE == 0)
-       if (state == STATUS_LED_ON)
+       if (state == CONFIG_LED_STATUS_ON)
                immr->STATUS_LED_DAT &= ~mask;
        else
                immr->STATUS_LED_DAT |= mask;
 #else
-       if (state == STATUS_LED_ON)
+       if (state == CONFIG_LED_STATUS_ON)
                immr->STATUS_LED_DAT |= mask;
        else
                immr->STATUS_LED_DAT &= ~mask;
index f7cf915759de29bdc5731561417eaf185a74f1bc..50313573fb92d6c795adbc25e96a0bda10c254c4 100644 (file)
@@ -11,7 +11,7 @@
 #include <common.h>
 #include <asm/processor.h>
 #include <watchdog.h>
-#ifdef CONFIG_STATUS_LED
+#ifdef CONFIG_LED_STATUS
 #include <status_led.h>
 #endif
 
@@ -112,9 +112,9 @@ void timer_interrupt (struct pt_regs *regs)
                WATCHDOG_RESET ();
 #endif    /* CONFIG_WATCHDOG || CONFIG_HW_WATCHDOG */
 
-#ifdef CONFIG_STATUS_LED
+#ifdef CONFIG_LED_STATUS
        status_led_tick (timestamp);
-#endif /* CONFIG_STATUS_LED */
+#endif /* CONFIG_LED_STATUS */
 
 #ifdef CONFIG_SHOW_ACTIVITY
        board_show_activity (timestamp);
index 2164b52dee0926e979ace5b8501411a27dd285de..b1740ee9b9a3ada0698e245768268e53730c0fc0 100644 (file)
@@ -174,7 +174,7 @@ void __led_init(led_id_t mask, int state)
 
 void __led_set(led_id_t mask, int state)
 {
-       if (state == STATUS_LED_ON)
+       if (state == CONFIG_LED_STATUS_ON)
                MCFGPTA_GPTPORT |= (1 << 3);
        else
                MCFGPTA_GPTPORT &= ~(1 << 3);
index eb000a6a88bd1f00d43ed9220939125e948c0134..185a651bec8e9b93e22f05a863efc125022cae89 100644 (file)
@@ -50,8 +50,8 @@ int misc_init_r(void)
 
 #ifdef CONFIG_SHOW_BOOT_PROGRESS
 
-#define STATUS_LED_OFF 0
-#define STATUS_LED_ON  1
+#define CONFIG_LED_STATUS_OFF 0
+#define CONFIG_LED_STATUS_ON  1
 
 static int gpio_setup;
 
@@ -76,24 +76,30 @@ void show_boot_progress(int status)
 {
        switch (status) {
        case BOOTSTAGE_ID_CHECK_MAGIC:
-               stamp_led_set(STATUS_LED_OFF, STATUS_LED_OFF, STATUS_LED_ON);
+               stamp_led_set(CONFIG_LED_STATUS_OFF, CONFIG_LED_STATUS_OFF,
+                             CONFIG_LED_STATUS_ON);
                break;
        case BOOTSTAGE_ID_CHECK_HEADER:
-               stamp_led_set(STATUS_LED_OFF, STATUS_LED_ON, STATUS_LED_OFF);
+               stamp_led_set(CONFIG_LED_STATUS_OFF, CONFIG_LED_STATUS_ON,
+                             CONFIG_LED_STATUS_OFF);
                break;
        case BOOTSTAGE_ID_CHECK_CHECKSUM:
-               stamp_led_set(STATUS_LED_OFF, STATUS_LED_ON, STATUS_LED_ON);
+               stamp_led_set(CONFIG_LED_STATUS_OFF, CONFIG_LED_STATUS_ON,
+                             CONFIG_LED_STATUS_ON);
                break;
        case BOOTSTAGE_ID_CHECK_ARCH:
-               stamp_led_set(STATUS_LED_ON, STATUS_LED_OFF, STATUS_LED_OFF);
+               stamp_led_set(CONFIG_LED_STATUS_ON, CONFIG_LED_STATUS_OFF,
+                             CONFIG_LED_STATUS_OFF);
                break;
        case BOOTSTAGE_ID_CHECK_IMAGETYPE:
        case BOOTSTAGE_ID_DECOMP_IMAGE:
-               stamp_led_set(STATUS_LED_ON, STATUS_LED_OFF, STATUS_LED_ON);
+               stamp_led_set(CONFIG_LED_STATUS_ON, CONFIG_LED_STATUS_OFF,
+                             CONFIG_LED_STATUS_ON);
                break;
        case BOOTSTAGE_ID_KERNEL_LOADED:
        case BOOTSTAGE_ID_CHECK_BOOT_OS:
-               stamp_led_set(STATUS_LED_ON, STATUS_LED_ON, STATUS_LED_OFF);
+               stamp_led_set(CONFIG_LED_STATUS_ON, CONFIG_LED_STATUS_ON,
+                             CONFIG_LED_STATUS_OFF);
                break;
        case BOOTSTAGE_ID_BOOT_OS_RETURNED:
        case BOOTSTAGE_ID_RD_MAGIC:
@@ -102,10 +108,12 @@ void show_boot_progress(int status)
        case BOOTSTAGE_ID_RAMDISK:
        case BOOTSTAGE_ID_NO_RAMDISK:
        case BOOTSTAGE_ID_RUN_OS:
-               stamp_led_set(STATUS_LED_OFF, STATUS_LED_OFF, STATUS_LED_OFF);
+               stamp_led_set(CONFIG_LED_STATUS_OFF, CONFIG_LED_STATUS_OFF,
+                             CONFIG_LED_STATUS_OFF);
                break;
        default:
-               stamp_led_set(STATUS_LED_ON, STATUS_LED_ON, STATUS_LED_ON);
+               stamp_led_set(CONFIG_LED_STATUS_ON, CONFIG_LED_STATUS_ON,
+                             CONFIG_LED_STATUS_ON);
                break;
        }
 }
index 428aee6d242ff707c1fdc2db2e793ed46967cb4f..c4506b910e3cb6ee9809b071918f7d795c7a9aaf 100644 (file)
@@ -31,8 +31,8 @@ int board_init(void)
 
        gpmc_init();
 
-#if defined(CONFIG_STATUS_LED) && defined(STATUS_LED_BOOT)
-       status_led_set(STATUS_LED_BOOT, STATUS_LED_OFF);
+#if defined(CONFIG_LED_STATUS) && defined(CONFIG_LED_STATUS_BOOT_ENABLE)
+       status_led_set(CONFIG_LED_STATUS_BOOT, CONFIG_LED_STATUS_OFF);
 #endif
        return 0;
 }
index 484651b8c44482004349958189f7520583909ae7..ec21955b3911ff94e3f3428b0cbafc63716217e3 100644 (file)
@@ -92,8 +92,8 @@ int board_init(void)
        /* boot param addr */
        gd->bd->bi_boot_params = (OMAP34XX_SDRC_CS0 + 0x100);
 
-#if defined(CONFIG_STATUS_LED) && defined(STATUS_LED_BOOT)
-       status_led_set(STATUS_LED_BOOT, STATUS_LED_ON);
+#if defined(CONFIG_LED_STATUS) && defined(CONFIG_LED_STATUS_BOOT_ENABLE)
+       status_led_set(CONFIG_LED_STATUS_BOOT, CONFIG_LED_STATUS_ON);
 #endif
 
        return 0;
index 8aae248042da9b09b9f4b5c695a1289d49759230..50312b126c2f3133193c56baa7846292f11a1b7a 100644 (file)
@@ -89,8 +89,8 @@ int board_init(void)
        /* boot param addr */
        gd->bd->bi_boot_params = (OMAP34XX_SDRC_CS0 + 0x100);
 
-#if defined(CONFIG_STATUS_LED) && defined(STATUS_LED_BOOT)
-       status_led_set(STATUS_LED_BOOT, STATUS_LED_ON);
+#if defined(CONFIG_LED_STATUS) && defined(CONFIG_LED_STATUS_BOOT_ENABLE)
+       status_led_set(CONFIG_LED_STATUS_BOOT, CONFIG_LED_STATUS_ON);
 #endif
 
        cm_t3517_musb_init();
index 30f2f508f0afaa5d5b500932a32d834abe2ca48d..00ffc0017ff75d3c9898aaa459c4f379f5c5bae5 100644 (file)
@@ -23,16 +23,16 @@ void __led_init(led_id_t mask, int state)
 void __led_toggle(led_id_t mask)
 {
        int toggle_gpio = 0;
-#ifdef STATUS_LED_BIT
-       if (!toggle_gpio && STATUS_LED_BIT & mask)
+#ifdef CONFIG_LED_STATUS0
+       if (!toggle_gpio && CONFIG_LED_STATUS_BIT & mask)
                toggle_gpio = TRICORDER_STATUS_LED_GREEN;
 #endif
-#ifdef STATUS_LED_BIT1
-       if (!toggle_gpio && STATUS_LED_BIT1 & mask)
+#ifdef CONFIG_LED_STATUS1
+       if (!toggle_gpio && CONFIG_LED_STATUS_BIT1 & mask)
                toggle_gpio = TRICORDER_STATUS_LED_YELLOW;
 #endif
-#ifdef STATUS_LED_BIT2
-       if (!toggle_gpio && STATUS_LED_BIT2 & mask) {
+#ifdef CONFIG_LED_STATUS2
+       if (!toggle_gpio && CONFIG_LED_STATUS_BIT2 & mask) {
                uint8_t val;
                twl4030_i2c_read_u8(TWL4030_CHIP_LED, TWL4030_LED_LEDEN,
                                    &val);
@@ -51,23 +51,23 @@ void __led_toggle(led_id_t mask)
 
 void __led_set(led_id_t mask, int state)
 {
-#ifdef STATUS_LED_BIT
-       if (STATUS_LED_BIT & mask) {
+#ifdef CONFIG_LED_STATUS0
+       if (CONFIG_LED_STATUS_BIT & mask) {
                gpio_request(TRICORDER_STATUS_LED_GREEN, "");
                gpio_direction_output(TRICORDER_STATUS_LED_GREEN, 0);
                gpio_set_value(TRICORDER_STATUS_LED_GREEN, state);
        }
 #endif
-#ifdef STATUS_LED_BIT1
-       if (STATUS_LED_BIT1 & mask) {
+#ifdef CONFIG_LED_STATUS1
+       if (CONFIG_LED_STATUS_BIT1 & mask) {
                gpio_request(TRICORDER_STATUS_LED_YELLOW, "");
                gpio_direction_output(TRICORDER_STATUS_LED_YELLOW, 0);
                gpio_set_value(TRICORDER_STATUS_LED_YELLOW, state);
        }
 #endif
-#ifdef STATUS_LED_BIT2
-       if (STATUS_LED_BIT2 & mask) {
-               if (STATUS_LED_OFF == state)
+#ifdef CONFIG_LED_STATUS2
+       if (CONFIG_LED_STATUS_BIT2 & mask) {
+               if (CONFIG_LED_STATUS_OFF == state)
                        twl4030_i2c_write_u8(TWL4030_CHIP_LED,
                                             TWL4030_LED_LEDEN, 0);
                else
index 00094526517139c693e5101c7d88e849f1dd33fa..e8260c63a08c2d5485f54cab6973e6d0bf94461d 100644 (file)
@@ -120,9 +120,9 @@ int misc_init_r(void)
        print_hwversion(&eeprom);
 
        twl4030_power_init();
-       status_led_set(0, STATUS_LED_ON);
-       status_led_set(1, STATUS_LED_ON);
-       status_led_set(2, STATUS_LED_ON);
+       status_led_set(0, CONFIG_LED_STATUS_ON);
+       status_led_set(1, CONFIG_LED_STATUS_ON);
+       status_led_set(2, CONFIG_LED_STATUS_ON);
 
        omap_die_id_display();
 
index 5a3498f570a6d98cf78fd9848e0532d04b6fdb07..65cc7dfdecefb3586ce6fcdab4533680636c9c84 100644 (file)
@@ -69,8 +69,8 @@ int board_init(void)
        /* boot param addr */
        gd->bd->bi_boot_params = (OMAP34XX_SDRC_CS0 + 0x100);
 
-#if defined(CONFIG_STATUS_LED) && defined(STATUS_LED_BOOT)
-       status_led_set(STATUS_LED_BOOT, STATUS_LED_ON);
+#if defined(CONFIG_LED_STATUS) && defined(CONFIG_LED_STATUS_BOOT_ENABLE)
+       status_led_set(CONFIG_LED_STATUS_BOOT, CONFIG_LED_STATUS_ON);
 #endif
 
        return 0;
index dc237c1cedaf9d1c5c8ee75eb1bc65dc36f95cb8..7fa81b8677a34e111c1fa21997a2fee4793c8ea0 100644 (file)
@@ -15,9 +15,9 @@
 #include <miiphy.h>
 #include <libfdt.h>
 
-#if defined(CONFIG_STATUS_LED)
+#if defined(CONFIG_LED_STATUS)
 #include <status_led.h>
-#endif /* CONFIG_STATUS_LED */
+#endif /* CONFIG_LED_STATUS */
 
 /* Kollmorgen DPR initialization data */
 struct init_elem {
@@ -194,27 +194,46 @@ int ft_board_setup(void *blob, bd_t *bd)
 #endif /* CONFIG_OF_BOARD_SETUP */
 
 
-#if defined(CONFIG_STATUS_LED)
-void __led_init(led_id_t regaddr, int state)
+#if defined(CONFIG_LED_STATUS)
+vu_long *regcode_to_regaddr(led_id_t regcode)
 {
-       *((vu_long *) regaddr) |= ENABLE_GPIO_OUT;
+       /* GPT Enable and Mode Select Register address */
+       vu_long *reg_translate[] = {
+                                       (vu_long *)MPC5XXX_GPT6_ENABLE,
+                                       (vu_long *)MPC5XXX_GPT7_ENABLE,
+                                  };
+
+       if (ARRAY_SIZE(reg_translate) <= regcode)
+               return NULL;
+       return reg_translate[regcode];
+}
+
+void __led_init(led_id_t regcode, int state)
+{
+       vu_long *regaddr = regcode_to_regaddr(regcode);
+
+       *regaddr |= ENABLE_GPIO_OUT;
 
-       if (state == STATUS_LED_ON)
+       if (state == CONFIG_LED_STATUS_ON)
                *((vu_long *) regaddr) |= LED_ON;
        else
                *((vu_long *) regaddr) &= ~LED_ON;
 }
 
-void __led_set(led_id_t regaddr, int state)
+void __led_set(led_id_t regcode, int state)
 {
-       if (state == STATUS_LED_ON)
-               *((vu_long *) regaddr) |= LED_ON;
+       vu_long *regaddr = regcode_to_regaddr(regcode);
+
+       if (state == CONFIG_LED_STATUS_ON)
+               *regaddr |= LED_ON;
        else
-               *((vu_long *) regaddr) &= ~LED_ON;
+               *regaddr &= ~LED_ON;
 }
 
-void __led_toggle(led_id_t regaddr)
+void __led_toggle(led_id_t regcode)
 {
-       *((vu_long *) regaddr) ^= LED_ON;
+       vu_long *regaddr = regcode_to_regaddr(regcode);
+
+       *regaddr ^= LED_ON;
 }
-#endif /* CONFIG_STATUS_LED */
+#endif /* CONFIG_LED_STATUS */
index 65cbbf15b73194ec15311c288f17e7c23cf3dbc4..f05fd0a9da059144fa74014877bf28538b5ab27d 100644 (file)
@@ -13,7 +13,7 @@
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
-#ifdef CONFIG_STATUS_LED
+#ifdef CONFIG_LED_STATUS
 #include <status_led.h>
 #endif
 
@@ -72,8 +72,8 @@ int board_init(void)
        /* Adress of boot parameters */
        gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
-#if defined(CONFIG_STATUS_LED) && defined(STATUS_LED_BOOT)
-       status_led_set(STATUS_LED_BOOT, STATUS_LED_STATE);
+#if defined(CONFIG_LED_STATUS) && defined(CONFIG_LED_STATUS_BOOT_ENABLE)
+       status_led_set(CONFIG_LED_STATUS_BOOT, CONFIG_LED_STATUS_STATE);
 #endif
 
        return 0;
index f3a92b5e645087c90f5defe2466112665a9df707..f888ecbbc19602601f2084f22d95dbaf510583fd 100644 (file)
@@ -21,8 +21,8 @@ int board_late_init(void)
        const unsigned int usb_nrst_gpio = 35;
        int ret;
 
-       status_led_set(1, STATUS_LED_ON);
-       status_led_set(2, STATUS_LED_ON);
+       status_led_set(1, CONFIG_LED_STATUS_ON);
+       status_led_set(2, CONFIG_LED_STATUS_ON);
 
        /* Address of boot parameters for ATAG (if ATAG is used) */
        gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
index 7a858be5e492daeaeba7a7619058e231078d3e73..41b552ac0ef33461d803aecdccc12777a277fae0 100644 (file)
@@ -6,4 +6,4 @@
 #
 
 obj-y  := beagle.o
-obj-$(CONFIG_STATUS_LED) += led.o
+obj-$(CONFIG_LED_STATUS) += led.o
index 23c79333a223681b67e53bd3277b7d545ba7f537..a6908d4bed5bfe5e11de4b66628c69a5cb1cdf82 100644 (file)
@@ -16,7 +16,7 @@
 #include <common.h>
 #include <dm.h>
 #include <ns16550.h>
-#ifdef CONFIG_STATUS_LED
+#ifdef CONFIG_LED_STATUS
 #include <status_led.h>
 #endif
 #include <twl4030.h>
@@ -96,8 +96,8 @@ int board_init(void)
        /* boot param addr */
        gd->bd->bi_boot_params = (OMAP34XX_SDRC_CS0 + 0x100);
 
-#if defined(CONFIG_STATUS_LED) && defined(STATUS_LED_BOOT)
-       status_led_set (STATUS_LED_BOOT, STATUS_LED_ON);
+#if defined(CONFIG_LED_STATUS) && defined(CONFIG_LED_STATUS_BOOT_ENABLE)
+       status_led_set(CONFIG_LED_STATUS_BOOT, CONFIG_LED_STATUS_ON);
 #endif
 
        return 0;
index a913a4c84aa624453138ce0ad6fa8180db61fc1b..30b8b93da5a78a19e4ba80a956361515661467d7 100644 (file)
 #define BEAGLE_LED_USR0        150
 #define BEAGLE_LED_USR1        149
 
-#ifdef STATUS_LED_GREEN
+#ifdef CONFIG_LED_STATUS_GREEN
 void green_led_off(void)
 {
-       __led_set (STATUS_LED_GREEN, 0);
+       __led_set(CONFIG_LED_STATUS_GREEN, 0);
 }
 
 void green_led_on(void)
 {
-       __led_set (STATUS_LED_GREEN, 1);
+       __led_set(CONFIG_LED_STATUS_GREEN, 1);
 }
 #endif
 
 static int get_led_gpio(led_id_t mask)
 {
-#ifdef STATUS_LED_BIT
-       if (STATUS_LED_BIT & mask)
+#ifdef CONFIG_LED_STATUS0
+       if (CONFIG_LED_STATUS_BIT & mask)
                return BEAGLE_LED_USR0;
 #endif
-#ifdef STATUS_LED_BIT1
-       if (STATUS_LED_BIT1 & mask)
+#ifdef CONFIG_LED_STATUS1
+       if (CONFIG_LED_STATUS_BIT1 & mask)
                return BEAGLE_LED_USR1;
 #endif
 
index 34bc5448b9382fcb35fe9781bb30743db79ca463..566fed9f7bc269bb5469d253bccb914a75ccb540 100644 (file)
@@ -78,7 +78,7 @@ obj-$(CONFIG_CMD_ITEST) += itest.o
 obj-$(CONFIG_CMD_JFFS2) += jffs2.o
 obj-$(CONFIG_CMD_CRAMFS) += cramfs.o
 obj-$(CONFIG_CMD_LDRINFO) += ldrinfo.o
-obj-$(CONFIG_CMD_LED) += led.o
+obj-$(CONFIG_LED_STATUS_CMD) += led.o
 obj-$(CONFIG_CMD_LICENSE) += license.o
 obj-y += load.o
 obj-$(CONFIG_LOGBUFFER) += log.o
index c942744e72e6b3a71e243e6b5d1f44a7d3b4ebca..0fd401b3c445a2f452d9483b0479acf73e98054f 100644 (file)
--- a/cmd/ide.c
+++ b/cmd/ide.c
@@ -25,7 +25,7 @@
 #include <ide.h>
 #include <ata.h>
 
-#ifdef CONFIG_STATUS_LED
+#ifdef CONFIG_LED_STATUS
 # include <status_led.h>
 #endif
 
index b0f1a61b1bb02cb813452b8ba696619645691f61..951a5e242f264ac7ecbe87347d078d7c9b531700 100644 (file)
--- a/cmd/led.c
+++ b/cmd/led.c
@@ -26,37 +26,38 @@ struct led_tbl_s {
 typedef struct led_tbl_s led_tbl_t;
 
 static const led_tbl_t led_commands[] = {
-#ifdef CONFIG_BOARD_SPECIFIC_LED
-#ifdef STATUS_LED_BIT
-       { "0", STATUS_LED_BIT, NULL, NULL, NULL },
+#ifdef CONFIG_LED_STATUS_BOARD_SPECIFIC
+#ifdef CONFIG_LED_STATUS0
+       { "0", CONFIG_LED_STATUS_BIT, NULL, NULL, NULL },
 #endif
-#ifdef STATUS_LED_BIT1
-       { "1", STATUS_LED_BIT1, NULL, NULL, NULL },
+#ifdef CONFIG_LED_STATUS1
+       { "1", CONFIG_LED_STATUS_BIT1, NULL, NULL, NULL },
 #endif
-#ifdef STATUS_LED_BIT2
-       { "2", STATUS_LED_BIT2, NULL, NULL, NULL },
+#ifdef CONFIG_LED_STATUS2
+       { "2", CONFIG_LED_STATUS_BIT2, NULL, NULL, NULL },
 #endif
-#ifdef STATUS_LED_BIT3
-       { "3", STATUS_LED_BIT3, NULL, NULL, NULL },
+#ifdef CONFIG_LED_STATUS3
+       { "3", CONFIG_LED_STATUS_BIT3, NULL, NULL, NULL },
 #endif
-#ifdef STATUS_LED_BIT4
-       { "4", STATUS_LED_BIT4, NULL, NULL, NULL },
+#ifdef CONFIG_LED_STATUS4
+       { "4", CONFIG_LED_STATUS_BIT4, NULL, NULL, NULL },
 #endif
-#ifdef STATUS_LED_BIT5
-       { "5", STATUS_LED_BIT5, NULL, NULL, NULL },
+#ifdef CONFIG_LED_STATUS5
+       { "5", CONFIG_LED_STATUS_BIT5, NULL, NULL, NULL },
 #endif
 #endif
-#ifdef STATUS_LED_GREEN
-       { "green", STATUS_LED_GREEN, green_led_off, green_led_on, NULL },
+#ifdef CONFIG_LED_STATUS_GREEN
+       { "green", CONFIG_LED_STATUS_GREEN, green_led_off, green_led_on, NULL },
 #endif
-#ifdef STATUS_LED_YELLOW
-       { "yellow", STATUS_LED_YELLOW, yellow_led_off, yellow_led_on, NULL },
+#ifdef CONFIG_LED_STATUS_YELLOW
+       { "yellow", CONFIG_LED_STATUS_YELLOW, yellow_led_off, yellow_led_on,
+         NULL },
 #endif
-#ifdef STATUS_LED_RED
-       { "red", STATUS_LED_RED, red_led_off, red_led_on, NULL },
+#ifdef CONFIG_LED_STATUS_RED
+       { "red", CONFIG_LED_STATUS_RED, red_led_off, red_led_on, NULL },
 #endif
-#ifdef STATUS_LED_BLUE
-       { "blue", STATUS_LED_BLUE, blue_led_off, blue_led_on, NULL },
+#ifdef CONFIG_LED_STATUS_BLUE
+       { "blue", CONFIG_LED_STATUS_BLUE, blue_led_off, blue_led_on, NULL },
 #endif
        { NULL, 0, NULL, NULL, NULL }
 };
@@ -110,14 +111,14 @@ int do_led (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
                                        led_commands[i].on();
                                else
                                        __led_set(led_commands[i].mask,
-                                                         STATUS_LED_ON);
+                                                         CONFIG_LED_STATUS_ON);
                                break;
                        case LED_OFF:
                                if (led_commands[i].off)
                                        led_commands[i].off();
                                else
                                        __led_set(led_commands[i].mask,
-                                                         STATUS_LED_OFF);
+                                                 CONFIG_LED_STATUS_OFF);
                                break;
                        case LED_TOGGLE:
                                if (led_commands[i].toggle)
@@ -149,36 +150,36 @@ int do_led (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 U_BOOT_CMD(
        led, 4, 1, do_led,
        "["
-#ifdef CONFIG_BOARD_SPECIFIC_LED
-#ifdef STATUS_LED_BIT
+#ifdef CONFIG_LED_STATUS_BOARD_SPECIFIC
+#ifdef CONFIG_LED_STATUS0
        "0|"
 #endif
-#ifdef STATUS_LED_BIT1
+#ifdef CONFIG_LED_STATUS1
        "1|"
 #endif
-#ifdef STATUS_LED_BIT2
+#ifdef CONFIG_LED_STATUS2
        "2|"
 #endif
-#ifdef STATUS_LED_BIT3
+#ifdef CONFIG_LED_STATUS3
        "3|"
 #endif
-#ifdef STATUS_LED_BIT4
+#ifdef CONFIG_LED_STATUS4
        "4|"
 #endif
-#ifdef STATUS_LED_BIT5
+#ifdef CONFIG_LED_STATUS5
        "5|"
 #endif
 #endif
-#ifdef STATUS_LED_GREEN
+#ifdef CONFIG_LED_STATUS_GREEN
        "green|"
 #endif
-#ifdef STATUS_LED_YELLOW
+#ifdef CONFIG_LED_STATUS_YELLOW
        "yellow|"
 #endif
-#ifdef STATUS_LED_RED
+#ifdef CONFIG_LED_STATUS_RED
        "red|"
 #endif
-#ifdef STATUS_LED_BLUE
+#ifdef CONFIG_LED_STATUS_BLUE
        "blue|"
 #endif
        "all] [on|off|toggle|blink] [blink-freq in ms]",
index a3733526c6995e797a1814c2b7b0444dd6551072..46a43b97a7351aca973f639bd3509128c526605e 100644 (file)
@@ -596,11 +596,11 @@ static int initr_kgdb(void)
 }
 #endif
 
-#if defined(CONFIG_STATUS_LED)
+#if defined(CONFIG_LED_STATUS)
 static int initr_status_led(void)
 {
-#if defined(STATUS_LED_BOOT)
-       status_led_set(STATUS_LED_BOOT, STATUS_LED_BLINKING);
+#if defined(CONFIG_LED_STATUS_BOOT)
+       status_led_set(CONFIG_LED_STATUS_BOOT, CONFIG_LED_STATUS_BLINKING);
 #else
        status_led_init();
 #endif
@@ -907,7 +907,7 @@ init_fnc_t init_sequence_r[] = {
 #if defined(CONFIG_MICROBLAZE) || defined(CONFIG_AVR32) || defined(CONFIG_M68K)
        timer_init,             /* initialize timer */
 #endif
-#if defined(CONFIG_STATUS_LED)
+#if defined(CONFIG_LED_STATUS)
        initr_status_led,
 #endif
        /* PPC has a udelay(20) here dating from 2002. Why? */
index 7081ed624ded2c27d252cc93d7ceaa4ccb151911..86451938f16d889134cdf214fbe22528277d4bb8 100644 (file)
@@ -10,5 +10,12 @@ CONFIG_CMD_ASKENV=y
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_SNTP=y
 CONFIG_CMD_EXT2=y
+CONFIG_LED_STATUS=y
+# CONFIG_LED_STATUS_BOARD_SPECIFIC is not set
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=1
+CONFIG_LED_STATUS_STATE=1
+CONFIG_LED_STATUS_BOOT_ENABLE=y
+CONFIG_LED_STATUS_BOOT=0
 # CONFIG_PCI is not set
 CONFIG_OF_LIBFDT=y
index 496dc067fd81a6bc007c98a5a5544b879e41aa9c..08bf1492caf66066edb7ddc0abb16691fae06875 100644 (file)
@@ -10,5 +10,12 @@ CONFIG_CMD_ASKENV=y
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_SNTP=y
 CONFIG_CMD_EXT2=y
+CONFIG_LED_STATUS=y
+# CONFIG_LED_STATUS_BOARD_SPECIFIC is not set
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=1
+CONFIG_LED_STATUS_STATE=1
+CONFIG_LED_STATUS_BOOT_ENABLE=y
+CONFIG_LED_STATUS_BOOT=0
 # CONFIG_PCI is not set
 CONFIG_OF_LIBFDT=y
index 0f711d1a59a1332257c13c8c285fde520350266b..1b87bcb801dab43dcc0e74e9492f2a860f689cf3 100644 (file)
@@ -10,5 +10,12 @@ CONFIG_CMD_ASKENV=y
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_SNTP=y
 CONFIG_CMD_EXT2=y
+CONFIG_LED_STATUS=y
+# CONFIG_LED_STATUS_BOARD_SPECIFIC is not set
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=1
+CONFIG_LED_STATUS_STATE=1
+CONFIG_LED_STATUS_BOOT_ENABLE=y
+CONFIG_LED_STATUS_BOOT=0
 # CONFIG_PCI is not set
 CONFIG_OF_LIBFDT=y
index 7a72ce95cbac081f7096132d14a67a8490ac9685..15aa30b1da957f839adeff5cf2fb31ba5f016626 100644 (file)
@@ -10,5 +10,12 @@ CONFIG_CMD_ASKENV=y
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_SNTP=y
 CONFIG_CMD_EXT2=y
+CONFIG_LED_STATUS=y
+# CONFIG_LED_STATUS_BOARD_SPECIFIC is not set
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=1
+CONFIG_LED_STATUS_STATE=1
+CONFIG_LED_STATUS_BOOT_ENABLE=y
+CONFIG_LED_STATUS_BOOT=0
 # CONFIG_PCI is not set
 CONFIG_OF_LIBFDT=y
index b034a04f4fc5061eeb523549a321657fce51f048..aa8b4a09d1bef43e593ed6e9a6fd6e59e5e60167 100644 (file)
@@ -10,5 +10,12 @@ CONFIG_CMD_ASKENV=y
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_SNTP=y
 CONFIG_CMD_EXT2=y
+CONFIG_LED_STATUS=y
+# CONFIG_LED_STATUS_BOARD_SPECIFIC is not set
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=1
+CONFIG_LED_STATUS_STATE=1
+CONFIG_LED_STATUS_BOOT_ENABLE=y
+CONFIG_LED_STATUS_BOOT=0
 # CONFIG_PCI is not set
 CONFIG_OF_LIBFDT=y
index 05b45186a313c416ae65a11ee4ad36ba121a0d11..3a80d5ae5e1ab6ca4b4f0c3c399104a2788a7cb7 100644 (file)
@@ -10,5 +10,12 @@ CONFIG_CMD_ASKENV=y
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_SNTP=y
 CONFIG_CMD_EXT2=y
+CONFIG_LED_STATUS=y
+# CONFIG_LED_STATUS_BOARD_SPECIFIC is not set
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=1
+CONFIG_LED_STATUS_STATE=1
+CONFIG_LED_STATUS_BOOT_ENABLE=y
+CONFIG_LED_STATUS_BOOT=0
 # CONFIG_PCI is not set
 CONFIG_OF_LIBFDT=y
index 5d8a08827f882ac384e42b0cd54fddcd9c5b4953..888516449ae7179e72453f6a83307209bedad036 100644 (file)
@@ -10,5 +10,12 @@ CONFIG_CMD_ASKENV=y
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_SNTP=y
 CONFIG_CMD_EXT2=y
+CONFIG_LED_STATUS=y
+# CONFIG_LED_STATUS_BOARD_SPECIFIC is not set
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=1
+CONFIG_LED_STATUS_STATE=1
+CONFIG_LED_STATUS_BOOT_ENABLE=y
+CONFIG_LED_STATUS_BOOT=0
 # CONFIG_PCI is not set
 CONFIG_OF_LIBFDT=y
index 023751d57f20f220a83a2fa316cc9d5038f56c1b..00196f71eb8b332ae050c26a88530223b641d7d7 100644 (file)
@@ -10,5 +10,12 @@ CONFIG_CMD_ASKENV=y
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_SNTP=y
 CONFIG_CMD_EXT2=y
+CONFIG_LED_STATUS=y
+# CONFIG_LED_STATUS_BOARD_SPECIFIC is not set
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=1
+CONFIG_LED_STATUS_STATE=1
+CONFIG_LED_STATUS_BOOT_ENABLE=y
+CONFIG_LED_STATUS_BOOT=0
 # CONFIG_PCI is not set
 CONFIG_OF_LIBFDT=y
index 628d687bf6aa4a60a742e0d6b31a46e6d4207bbc..1fff2b4782a31c8709bcd4ec4d6ada2191f6063a 100644 (file)
@@ -10,5 +10,12 @@ CONFIG_CMD_ASKENV=y
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_SNTP=y
 CONFIG_CMD_EXT2=y
+CONFIG_LED_STATUS=y
+# CONFIG_LED_STATUS_BOARD_SPECIFIC is not set
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=1
+CONFIG_LED_STATUS_STATE=1
+CONFIG_LED_STATUS_BOOT_ENABLE=y
+CONFIG_LED_STATUS_BOOT=0
 # CONFIG_PCI is not set
 CONFIG_OF_LIBFDT=y
index d1cf91c8cd8acd0111605da330f86bcc437992c9..afd6d6e5372c67dc9b8ff34e7f30406d05285b27 100644 (file)
@@ -10,5 +10,12 @@ CONFIG_CMD_ASKENV=y
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_SNTP=y
 CONFIG_CMD_EXT2=y
+CONFIG_LED_STATUS=y
+# CONFIG_LED_STATUS_BOARD_SPECIFIC is not set
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=1
+CONFIG_LED_STATUS_STATE=1
+CONFIG_LED_STATUS_BOOT_ENABLE=y
+CONFIG_LED_STATUS_BOOT=0
 # CONFIG_PCI is not set
 CONFIG_OF_LIBFDT=y
index e0cf770b515bcf259e72e89e561a8cfb4a7a0320..cb2c8696b0c9a0677252d5f629f361b4c626afff 100644 (file)
@@ -10,5 +10,12 @@ CONFIG_CMD_ASKENV=y
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_SNTP=y
 CONFIG_CMD_EXT2=y
+CONFIG_LED_STATUS=y
+# CONFIG_LED_STATUS_BOARD_SPECIFIC is not set
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=1
+CONFIG_LED_STATUS_STATE=1
+CONFIG_LED_STATUS_BOOT_ENABLE=y
+CONFIG_LED_STATUS_BOOT=0
 # CONFIG_PCI is not set
 CONFIG_OF_LIBFDT=y
index 889de7bdc2e3b50d795c591b608e898e0b2d3343..89bc2428b5aee74b6f8cc23372599ac7cc9b8dfb 100644 (file)
@@ -13,5 +13,12 @@ CONFIG_CMD_DHCP=y
 CONFIG_CMD_MII=y
 CONFIG_CMD_PING=y
 CONFIG_CMD_EXT2=y
+CONFIG_LED_STATUS=y
+# CONFIG_LED_STATUS_BOARD_SPECIFIC is not set
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=1
+CONFIG_LED_STATUS_STATE=1
+CONFIG_LED_STATUS_BOOT_ENABLE=y
+CONFIG_LED_STATUS_BOOT=0
 # CONFIG_PCI is not set
 CONFIG_OF_LIBFDT=y
index 5d3bc1107968a50b560057df5b4d45075d9a2c7e..6711075fab5bd63f73356e9598873ff6bf037fe1 100644 (file)
@@ -23,6 +23,11 @@ CONFIG_CMD_EXT4=y
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
+CONFIG_LED_STATUS=y
+CONFIG_LED_STATUS_GPIO=y
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=37
+CONFIG_LED_STATUS_STATE=2
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_BAR=y
index e2c8162f347f1e1835ea8613026a7f06d7a0fbbc..b21631cc45ce3fdb885f414a472810b491184549 100644 (file)
@@ -35,6 +35,12 @@ CONFIG_CMD_EXT4=y
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
+CONFIG_LED_STATUS=y
+CONFIG_LED_STATUS_GPIO=y
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=64
+CONFIG_LED_STATUS_BOOT_ENABLE=y
+CONFIG_LED_STATUS_BOOT=0
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SYS_NS16550=y
 CONFIG_OF_LIBFDT=y
index 115e4511cd6e8ce20cc70d65c5f702f0ccd3a870..1997e560cd2b15cb1fe6fc32932eefc9ac26ab39 100644 (file)
@@ -20,6 +20,13 @@ CONFIG_CMD_PING=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_EXT2=y
 CONFIG_CMD_FAT=y
+CONFIG_LED_STATUS=y
+CONFIG_LED_STATUS_GPIO=y
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=186
+CONFIG_LED_STATUS_STATE=2
+CONFIG_LED_STATUS_BOOT_ENABLE=y
+CONFIG_LED_STATUS_BOOT=0
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
index 4d9b203e3194a9bfe51d5409789bbcbd079c7458..9d23243fcc4504212b0a4b46f2f8e8b6f50da1c0 100644 (file)
@@ -22,6 +22,13 @@ CONFIG_CMD_PING=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_EXT2=y
 CONFIG_CMD_FAT=y
+CONFIG_LED_STATUS=y
+CONFIG_LED_STATUS_GPIO=y
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=186
+CONFIG_LED_STATUS_STATE=2
+CONFIG_LED_STATUS_BOOT_ENABLE=y
+CONFIG_LED_STATUS_BOOT=0
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
index 03d8e43b4681fbb0521e9a2c267add3f03ff8fd7..d53c6e801f77543f193cc8066849512250a983bc 100644 (file)
@@ -12,4 +12,10 @@ CONFIG_CMD_I2C=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_MII=y
+CONFIG_LED_STATUS=y
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=8
+CONFIG_LED_STATUS_BOOT_ENABLE=y
+CONFIG_LED_STATUS_BOOT=0
+CONFIG_LED_STATUS_CMD=y
 # CONFIG_CFB_CONSOLE is not set
index 04d094ae4677f4518674c1e18c9e086c8d2d13f9..1aed49a2aff8b775936c2c32c75aa7c19f4b92f3 100644 (file)
@@ -11,4 +11,10 @@ CONFIG_CMD_I2C=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_MII=y
+CONFIG_LED_STATUS=y
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=8
+CONFIG_LED_STATUS_BOOT_ENABLE=y
+CONFIG_LED_STATUS_BOOT=0
+CONFIG_LED_STATUS_CMD=y
 # CONFIG_CFB_CONSOLE is not set
index 9e8c6bb074e8bf1dd688f8791238e9be11d68857..86ae479796e300f40a3a8f238edd26a678c5d82c 100644 (file)
@@ -15,5 +15,17 @@ CONFIG_CMD_DHCP=y
 CONFIG_CMD_EXT2=y
 CONFIG_CMD_EXT4=y
 CONFIG_CMD_FAT=y
+CONFIG_LED_STATUS=y
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=0
+CONFIG_LED_STATUS_STATE=2
+CONFIG_LED_STATUS1=y
+CONFIG_LED_STATUS_BIT1=1
+CONFIG_LED_STATUS_BOOT_ENABLE=y
+CONFIG_LED_STATUS_BOOT=0
+CONFIG_LED_STATUS_RED_ENABLE=y
+CONFIG_LED_STATUS_RED=1
+CONFIG_LED_STATUS_GREEN_ENABLE=y
+CONFIG_LED_STATUS_GREEN=0
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
index 50bb4acf57dacb38cc2bc8b0b9f855306be52529..5fc0340993568add2556399266f51565529c7216 100644 (file)
@@ -34,6 +34,13 @@ CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_CMD_UBI=y
 CONFIG_NET_RANDOM_ETHADDR=y
+CONFIG_LED_STATUS=y
+CONFIG_LED_STATUS_GPIO=y
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=27
+CONFIG_LED_STATUS_STATE=2
+CONFIG_LED_STATUS_BOOT_ENABLE=y
+CONFIG_LED_STATUS_BOOT=0
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SYS_NS16550=y
 CONFIG_OF_LIBFDT=y
index 42bd6fc3dc83d3f9be0c31bb30c8d3178a37b0a7..8acdccc6e3d34f0f4ffcec2fef3167163e55f0fe 100644 (file)
@@ -26,6 +26,13 @@ CONFIG_CMD_CACHE=y
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_CMD_UBI=y
 CONFIG_NET_RANDOM_ETHADDR=y
+CONFIG_LED_STATUS=y
+CONFIG_LED_STATUS_GPIO=y
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=16
+CONFIG_LED_STATUS_STATE=2
+CONFIG_LED_STATUS_BOOT_ENABLE=y
+CONFIG_LED_STATUS_BOOT=0
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SYS_NS16550=y
 CONFIG_OF_LIBFDT=y
index d5c9317aa25f76eaa317af1ef818a42f0cf966e2..371ee2e26e5c8eaa496c22d96c1facf46df7c699 100644 (file)
@@ -15,5 +15,15 @@ CONFIG_CMD_DHCP=y
 CONFIG_CMD_MII=y
 CONFIG_CMD_PING=y
 CONFIG_CMD_FAT=y
+CONFIG_LED_STATUS=y
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=0
+CONFIG_LED_STATUS_STATE=1
+CONFIG_LED_STATUS_FREQ=10
+CONFIG_LED_STATUS1=y
+CONFIG_LED_STATUS_BIT1=1
+CONFIG_LED_STATUS_FREQ1=10
+CONFIG_LED_STATUS_BOOT_ENABLE=y
+CONFIG_LED_STATUS_BOOT=0
 # CONFIG_PCI is not set
 CONFIG_OF_LIBFDT=y
index f67bb78d8970aa6d44b1ed292ff84ee971d3b12c..00cff96f37843d31bd5efb30a363da18b90590c9 100644 (file)
@@ -19,6 +19,14 @@ CONFIG_CMD_DHCP=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_EXT2=y
 CONFIG_CMD_FAT=y
+CONFIG_LED_STATUS=y
+CONFIG_LED_STATUS_GPIO=y
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=59
+CONFIG_LED_STATUS_STATE=2
+CONFIG_LED_STATUS_BOOT_ENABLE=y
+CONFIG_LED_STATUS_BOOT=0
+CONFIG_LED_STATUS_CMD=y
 CONFIG_MMC_MXS=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
index 32626a24699f9e895968c4ba78d5a4d72dbca36b..1d32699e52b3111b1c71ccf59b1ef9cd2357c0a8 100644 (file)
@@ -18,6 +18,18 @@ CONFIG_CMD_USB=y
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_EXT4_WRITE=y
+CONFIG_LED_STATUS=y
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=1
+CONFIG_LED_STATUS_STATE=2
+CONFIG_LED_STATUS1=y
+CONFIG_LED_STATUS_BIT1=2
+CONFIG_LED_STATUS_STATE1=2
+CONFIG_LED_STATUS_BOOT_ENABLE=y
+CONFIG_LED_STATUS_BOOT=1
+CONFIG_LED_STATUS_GREEN_ENABLE=y
+CONFIG_LED_STATUS_GREEN=2
+CONFIG_LED_STATUS_CMD=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
index 030223a343ff6109765b2b01b53db3dcb39935d4..f9a7b50e4641484310331e3cbc27a9503f59255b 100644 (file)
@@ -47,6 +47,17 @@ CONFIG_DFU_RAM=y
 CONFIG_DFU_SF=y
 CONFIG_DM_GPIO=y
 CONFIG_DWAPB_GPIO=y
+CONFIG_LED_STATUS=y
+CONFIG_LED_STATUS_GPIO=y
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=48
+CONFIG_LED_STATUS1=y
+CONFIG_LED_STATUS_BIT1=53
+CONFIG_LED_STATUS2=y
+CONFIG_LED_STATUS_BIT2=54
+CONFIG_LED_STATUS3=y
+CONFIG_LED_STATUS_BIT3=65
+CONFIG_LED_STATUS_CMD=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_DW=y
 CONFIG_SPI_FLASH=y
index 8649ee80cc871329af3e2b07137ad701eae55339..857150accc189266bb986d8e4287d456bab3d661 100644 (file)
@@ -29,6 +29,26 @@ CONFIG_CMD_EXT4=y
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
+CONFIG_LED_STATUS=y
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=0
+CONFIG_LED_STATUS_STATE=2
+CONFIG_LED_STATUS1=y
+CONFIG_LED_STATUS_BIT1=1
+CONFIG_LED_STATUS_STATE1=2
+CONFIG_LED_STATUS2=y
+CONFIG_LED_STATUS_BIT2=2
+CONFIG_LED_STATUS_STATE2=2
+CONFIG_LED_STATUS3=y
+CONFIG_LED_STATUS_BIT3=3
+CONFIG_LED_STATUS_STATE3=2
+CONFIG_LED_STATUS4=y
+CONFIG_LED_STATUS_BIT4=4
+CONFIG_LED_STATUS_STATE4=2
+CONFIG_LED_STATUS5=y
+CONFIG_LED_STATUS_BIT5=5
+CONFIG_LED_STATUS_STATE5=2
+CONFIG_LED_STATUS_CMD=y
 CONFIG_PCA9551_LED=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
index 12a6843e0b41a455906c7db1809a9f6da70cd1f1..9a2e5c6041381f8609f58abef0a66c41143163e1 100644 (file)
@@ -18,6 +18,17 @@ CONFIG_CMD_I2C=y
 CONFIG_CMD_EXT2=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_UBI=y
+CONFIG_LED_STATUS=y
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=1
+CONFIG_LED_STATUS_STATE=2
+CONFIG_LED_STATUS1=y
+CONFIG_LED_STATUS_BIT1=2
+CONFIG_LED_STATUS_STATE1=2
+CONFIG_LED_STATUS2=y
+CONFIG_LED_STATUS_BIT2=4
+CONFIG_LED_STATUS_STATE2=2
+CONFIG_LED_STATUS_CMD=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SYS_NS16550=y
 CONFIG_OF_LIBFDT=y
index 32c2059f5d01779349599c06767d95c006065fa0..a477091c401b16e26b48b6952ce1ce0b0c642d57 100644 (file)
@@ -18,6 +18,17 @@ CONFIG_CMD_I2C=y
 CONFIG_CMD_EXT2=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_UBI=y
+CONFIG_LED_STATUS=y
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=1
+CONFIG_LED_STATUS_STATE=2
+CONFIG_LED_STATUS1=y
+CONFIG_LED_STATUS_BIT1=2
+CONFIG_LED_STATUS_STATE1=2
+CONFIG_LED_STATUS2=y
+CONFIG_LED_STATUS_BIT2=4
+CONFIG_LED_STATUS_STATE2=2
+CONFIG_LED_STATUS_CMD=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SYS_NS16550=y
 CONFIG_OF_LIBFDT=y
index fb198b6a1afb7c7326084a67a81771a3d8e44045..e5dd07aface9a6d65f148307bc9237ea2fedb95f 100644 (file)
@@ -10,6 +10,12 @@ CONFIG_CMD_DHCP=y
 CONFIG_CMD_MII=y
 CONFIG_CMD_PING=y
 CONFIG_CMD_FAT=y
+CONFIG_LED_STATUS=y
+CONFIG_LED_STATUS0=y
+CONFIG_LED_STATUS_BIT=16
+CONFIG_LED_STATUS_STATE=1
+CONFIG_LED_STATUS_BOOT_ENABLE=y
+CONFIG_LED_STATUS_BOOT=0
 # CONFIG_PCI is not set
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
index 9fbb5a7880cb7d60742cd1b038d519affbedad6a..e3151ea097c478edf3ff51e394a506c27eac31a0 100644 (file)
@@ -18,7 +18,7 @@ obj-$(CONFIG_CROS_EC_SANDBOX) += cros_ec_sandbox.o
 obj-$(CONFIG_CROS_EC_SPI) += cros_ec_spi.o
 endif
 obj-$(CONFIG_FSL_IIM) += fsl_iim.o
-obj-$(CONFIG_GPIO_LED) += gpio_led.o
+obj-$(CONFIG_LED_STATUS_GPIO) += gpio_led.o
 obj-$(CONFIG_I2C_EEPROM) += i2c_eeprom.o
 obj-$(CONFIG_FSL_MC9SDZ60) += mc9sdz60.o
 obj-$(CONFIG_MXC_OCOTP) += mxc_ocotp.o
@@ -34,7 +34,7 @@ endif
 endif
 obj-$(CONFIG_SMSC_LPC47M) += smsc_lpc47m.o
 obj-$(CONFIG_SMSC_SIO1007) += smsc_sio1007.o
-obj-$(CONFIG_STATUS_LED) += status_led.o
+obj-$(CONFIG_LED_STATUS) += status_led.o
 obj-$(CONFIG_SANDBOX) += swap_case.o
 ifdef CONFIG_SPL_OF_PLATDATA
 ifdef CONFIG_SPL_BUILD
index 164c30db382c2d3f1f4a2eff191e7bc0c16714a8..b913069849ac4192aaceacb39f71ea1f45de5164 100644 (file)
@@ -17,7 +17,7 @@ static led_id_t gpio_led_inv[] = CONFIG_GPIO_LED_INVERTED_TABLE;
 
 static int gpio_led_gpio_value(led_id_t mask, int state)
 {
-       int i, gpio_value = (state == STATUS_LED_ON);
+       int i, gpio_value = (state == CONFIG_LED_STATUS_ON);
 
        for (i = 0; i < ARRAY_SIZE(gpio_led_inv); i++) {
                if (gpio_led_inv[i] == mask)
@@ -56,51 +56,51 @@ void __led_toggle(led_id_t mask)
 
 /* 'generic' override of colored LED stubs, to use GPIO functions instead */
 
-#ifdef STATUS_LED_RED
+#ifdef CONFIG_LED_STATUS_RED
 void red_led_on(void)
 {
-       __led_set(STATUS_LED_RED, STATUS_LED_ON);
+       __led_set(CONFIG_LED_STATUS_RED, CONFIG_LED_STATUS_ON);
 }
 
 void red_led_off(void)
 {
-       __led_set(STATUS_LED_RED, STATUS_LED_OFF);
+       __led_set(CONFIG_LED_STATUS_RED, CONFIG_LED_STATUS_OFF);
 }
 #endif
 
-#ifdef STATUS_LED_GREEN
+#ifdef CONFIG_LED_STATUS_GREEN
 void green_led_on(void)
 {
-       __led_set(STATUS_LED_GREEN, STATUS_LED_ON);
+       __led_set(CONFIG_LED_STATUS_GREEN, CONFIG_LED_STATUS_ON);
 }
 
 void green_led_off(void)
 {
-       __led_set(STATUS_LED_GREEN, STATUS_LED_OFF);
+       __led_set(CONFIG_LED_STATUS_GREEN, CONFIG_LED_STATUS_OFF);
 }
 #endif
 
-#ifdef STATUS_LED_YELLOW
+#ifdef CONFIG_LED_STATUS_YELLOW
 void yellow_led_on(void)
 {
-       __led_set(STATUS_LED_YELLOW, STATUS_LED_ON);
+       __led_set(CONFIG_LED_STATUS_YELLOW, CONFIG_LED_STATUS_ON);
 }
 
 void yellow_led_off(void)
 {
-       __led_set(STATUS_LED_YELLOW, STATUS_LED_OFF);
+       __led_set(CONFIG_LED_STATUS_YELLOW, CONFIG_LED_STATUS_OFF);
 }
 #endif
 
-#ifdef STATUS_LED_BLUE
+#ifdef CONFIG_LED_STATUS_BLUE
 void blue_led_on(void)
 {
-       __led_set(STATUS_LED_BLUE, STATUS_LED_ON);
+       __led_set(CONFIG_LED_STATUS_BLUE, CONFIG_LED_STATUS_ON);
 }
 
 void blue_led_off(void)
 {
-       __led_set(STATUS_LED_BLUE, STATUS_LED_OFF);
+       __led_set(CONFIG_LED_STATUS_BLUE, CONFIG_LED_STATUS_OFF);
 }
 #endif
 
index 4da031985f732ecb4b55f12ff1f44af5c1ffb334..226a31ab1b995551b52948e5034a5817d39cbe6a 100644 (file)
@@ -124,7 +124,7 @@ void __led_init(led_id_t id, int state)
 
 void __led_set(led_id_t mask, int state)
 {
-       if (state == STATUS_LED_OFF)
+       if (state == CONFIG_LED_STATUS_OFF)
                pca9551_led_set_state(mask, PCA9551_LED_STATE_OFF);
        else
                pca9551_led_set_state(mask, PCA9551_LED_STATE_ON);
index 31e88319d1515ceb9de50e9e7e749215265a5f7f..3773c85424f8cd4926a0b7e52af9f0ace591500e 100644 (file)
@@ -27,45 +27,45 @@ typedef struct {
 } led_dev_t;
 
 led_dev_t led_dev[] = {
-    {  STATUS_LED_BIT,
-       STATUS_LED_STATE,
-       STATUS_LED_PERIOD,
-       0,
-    },
-#if defined(STATUS_LED_BIT1)
-    {  STATUS_LED_BIT1,
-       STATUS_LED_STATE1,
-       STATUS_LED_PERIOD1,
-       0,
-    },
+       {       CONFIG_LED_STATUS_BIT,
+               CONFIG_LED_STATUS_STATE,
+               LED_STATUS_PERIOD,
+               0,
+       },
+#if defined(CONFIG_LED_STATUS1)
+       {       CONFIG_LED_STATUS_BIT1,
+               CONFIG_LED_STATUS_STATE1,
+               LED_STATUS_PERIOD1,
+               0,
+       },
 #endif
-#if defined(STATUS_LED_BIT2)
-    {  STATUS_LED_BIT2,
-       STATUS_LED_STATE2,
-       STATUS_LED_PERIOD2,
-       0,
-    },
+#if defined(CONFIG_LED_STATUS2)
+       {       CONFIG_LED_STATUS_BIT2,
+               CONFIG_LED_STATUS_STATE2,
+               LED_STATUS_PERIOD2,
+               0,
+       },
 #endif
-#if defined(STATUS_LED_BIT3)
-    {  STATUS_LED_BIT3,
-       STATUS_LED_STATE3,
-       STATUS_LED_PERIOD3,
-       0,
-    },
+#if defined(CONFIG_LED_STATUS3)
+       {       CONFIG_LED_STATUS_BIT3,
+               CONFIG_LED_STATUS_STATE3,
+               LED_STATUS_PERIOD3,
+               0,
+       },
 #endif
-#if defined(STATUS_LED_BIT4)
-    {  STATUS_LED_BIT4,
-       STATUS_LED_STATE4,
-       STATUS_LED_PERIOD4,
-       0,
-    },
+#if defined(CONFIG_LED_STATUS4)
+       {       CONFIG_LED_STATUS_BIT4,
+               CONFIG_LED_STATUS_STATE4,
+               LED_STATUS_PERIOD4,
+               0,
+       },
 #endif
-#if defined(STATUS_LED_BIT5)
-    {  STATUS_LED_BIT5,
-       STATUS_LED_STATE5,
-       STATUS_LED_PERIOD5,
-       0,
-    },
+#if defined(CONFIG_LED_STATUS5)
+       {       CONFIG_LED_STATUS_BIT5,
+               CONFIG_LED_STATUS_STATE5,
+               LED_STATUS_PERIOD5,
+               0,
+       },
 #endif
 };
 
@@ -93,7 +93,7 @@ void status_led_tick (ulong timestamp)
 
        for (i = 0, ld = led_dev; i < MAX_LED_DEV; i++, ld++) {
 
-               if (ld->state != STATUS_LED_BLINKING)
+               if (ld->state != CONFIG_LED_STATUS_BLINKING)
                        continue;
 
                if (++ld->cnt >= ld->period) {
@@ -117,9 +117,9 @@ void status_led_set (int led, int state)
        ld = &led_dev[led];
 
        ld->state = state;
-       if (state == STATUS_LED_BLINKING) {
+       if (state == CONFIG_LED_STATUS_BLINKING) {
                ld->cnt = 0;            /* always start with full period    */
-               state = STATUS_LED_ON;  /* always start with LED _ON_       */
+               state = CONFIG_LED_STATUS_ON;   /* always start with LED _ON_ */
        }
        __led_set (ld->mask, state);
 }
index 695478c1ac777e53cba7172ea1228726a51c4f2d..2af555ee00ce69adc85de58d533464dbdb173268 100644 (file)
@@ -911,7 +911,7 @@ static inline struct in_addr getenv_ip(char *var)
 
 int    pcmcia_init (void);
 
-#ifdef CONFIG_STATUS_LED
+#ifdef CONFIG_LED_STATUS
 # include <status_led.h>
 #endif
 
index c8d0a5843909d84b089c2147461b5e0a53b149d8..9589c359efd5d6a5471e48aebe87d08ec1b18ec9 100644 (file)
@@ -50,8 +50,6 @@
 
 #define CONFIG_WATCHDOG                                /* turn on platform specific watchdog   */
 
-/*#define CONFIG_STATUS_LED    1               */ /* Enable status led */
-
 #define CONFIG_LOADS_ECHO      1               /* Echo on for serial download */
 
 /*
index 2fd5fa3f24feba9c801a2a5210a0edbbda404aef..41879f85df5db2f4c0d775f4387d739067c42ece 100644 (file)
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
-#if defined(CONFIG_LCD)
-# undef         CONFIG_STATUS_LED              /* disturbs display             */
-#else
-# define CONFIG_STATUS_LED     1       /* Status LED enabled           */
-#endif /* CONFIG_LCD */
-
 #undef CONFIG_CAN_DRIVER               /* CAN Driver support disabled  */
 
 /*
index 11bba09d150684f1d3f94b055fa9f518023fcaae..ad5c922bfbacfc08fff2648252a7c1f18c71ef4c 100644 (file)
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
-#ifdef CONFIG_LCD
-# undef         CONFIG_STATUS_LED              /* disturbs display             */
-#else
-# define CONFIG_STATUS_LED     1       /* Status LED enabled           */
-#endif /* CONFIG_LCD */
-
 #undef CONFIG_CAN_DRIVER               /* CAN Driver support disabled  */
 
 /*
index 548f1bc7ab0caf78aa999f072f839dc5edfe5ef5..03c7cb9921e69fed05eb262a240918ad62d8aa79 100644 (file)
@@ -69,8 +69,6 @@
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
-#define        CONFIG_STATUS_LED       1       /* Status LED enabled           */
-
 #undef CONFIG_CAN_DRIVER               /* CAN Driver support disabled  */
 
 /*
index 582b934ba90ef6207021c76a2d9a073ba09ccc95..3c716ce1a5fac60a46689288f5772af988565917 100644 (file)
@@ -69,8 +69,6 @@
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
-#define        CONFIG_STATUS_LED       1       /* Status LED enabled           */
-
 #undef CONFIG_CAN_DRIVER               /* CAN Driver support disabled  */
 
 /*
index 814290f4bca63f013ef281c992b067d455429521..c4c90aa0bf99f8751c8952f5daebd500b6a77b00 100644 (file)
@@ -71,8 +71,6 @@
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
-#define        CONFIG_STATUS_LED       1       /* Status LED enabled           */
-
 #undef CONFIG_CAN_DRIVER               /* CAN Driver support disabled  */
 
 /*
index 4a657ffafd6b9c84b984fbfa8c3c92647296788d..56e2a457aa816257f0baae709192a949f6aa5f06 100644 (file)
@@ -71,8 +71,6 @@
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
-#define        CONFIG_STATUS_LED       1       /* Status LED enabled           */
-
 #undef CONFIG_CAN_DRIVER               /* CAN Driver support disabled  */
 
 /* enable I2C and select the hardware/software driver */
index bdfe509b6e96bfe1c89611881c3bd5b6a84441eb..1875609d07d471df0f9b3e881864b28dc38127b1 100644 (file)
@@ -71,8 +71,6 @@
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
-#define        CONFIG_STATUS_LED       1       /* Status LED enabled           */
-
 #undef CONFIG_CAN_DRIVER               /* CAN Driver support disabled  */
 
 /*
index ce6b4043cd3cd07c3d8f7b32c5afd6c883276613..15df1da9e671a3bee4af5e3b73daf3264cc5634f 100644 (file)
@@ -71,8 +71,6 @@
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
-#define        CONFIG_STATUS_LED       1       /* Status LED enabled           */
-
 #undef CONFIG_CAN_DRIVER               /* CAN Driver support disabled  */
 
 /*
index 66dbcb6c7526e02099157570af71c7ef9ad2f96a..b3b072298ad06ec597325c47fcd46d309ceadd2f 100644 (file)
@@ -74,8 +74,6 @@
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
-#define        CONFIG_STATUS_LED       1       /* Status LED enabled           */
-
 #undef CONFIG_CAN_DRIVER               /* CAN Driver support disabled  */
 
 /*
index 478f16b83b5f870677d292bbca51afcef87d28a1..45f10e596f998b6907ab70d25cf2874b09ccb2ff 100644 (file)
@@ -74,8 +74,6 @@
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
-#define        CONFIG_STATUS_LED       1       /* Status LED enabled           */
-
 #undef CONFIG_CAN_DRIVER               /* CAN Driver support disabled  */
 
 /*
index 55016228fdc1bf97362e6264f3034bcbddfc1764..8f3efec37950526aa85d8f97a7d9e170dcde892e 100644 (file)
@@ -85,8 +85,6 @@
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
-#define CONFIG_STATUS_LED      1       /* Status LED enabled           */
-
 #undef CONFIG_CAN_DRIVER               /* CAN Driver support disabled  */
 
 /* enable I2C and select the hardware/software driver */
index b246926619e64e03f30c81fe5fb8bd283e223a3d..d75b25dc8904238540d2975ab606bf6db4df5704 100644 (file)
@@ -79,8 +79,6 @@
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
-#define CONFIG_STATUS_LED      1       /* Status LED enabled           */
-
 #undef CONFIG_CAN_DRIVER               /* CAN Driver support disabled  */
 
 /* enable I2C and select the hardware/software driver */
index d0a364c330a078a06cf7c694cdb4bd3cabdd75c0..7d75e73f7264ce8c26cde9e10f461b5e7a0e6068 100644 (file)
 #define CONFIG_UART_CONSOLE    1
 
 /* define to enable run status via led */
-/* #define CONFIG_STATUS_LED */
-#ifdef CONFIG_STATUS_LED
-#define CONFIG_GPIO_LED
-#define CONFIG_BOARD_SPECIFIC_LED
-/* use LED0 to indicate booting/alive */
-#define STATUS_LED_BOOT 0
-#define STATUS_LED_BIT GPIO_PF8
-#define STATUS_LED_STATE STATUS_LED_ON
-#define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 4)
-/* use LED1 to indicate crash */
-#define STATUS_LED_CRASH 1
-#define STATUS_LED_BIT1 GPIO_PG11
-#define STATUS_LED_STATE1 STATUS_LED_ON
-#define STATUS_LED_PERIOD1 (CONFIG_SYS_HZ / 2)
-/* #define STATUS_LED_BIT2 GPIO_PG12 */
-#endif
 
 /*
  * Pull in common ADI header for remaining command/environment setup
index ec4d93cf4b01602067626604a9b942c65bf71673..afb3ef605db6bf839de071c50806e027fd3f2000 100644 (file)
 /* #define CONFIG_SHOW_BOOT_PROGRESS */
 
 /* define to enable run status via led */
-/* #define CONFIG_STATUS_LED */
-#ifdef CONFIG_STATUS_LED
-#define CONFIG_GPIO_LED
-#define CONFIG_BOARD_SPECIFIC_LED
-/* use LED0 to indicate booting/alive */
-#define STATUS_LED_BOOT 0
-#define STATUS_LED_BIT GPIO_PF2
-#define STATUS_LED_STATE STATUS_LED_ON
-#define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 4)
-/* use LED1 to indicate crash */
-#define STATUS_LED_CRASH 1
-#define STATUS_LED_BIT1 GPIO_PF3
-#define STATUS_LED_STATE1 STATUS_LED_ON
-#define STATUS_LED_PERIOD1 (CONFIG_SYS_HZ / 2)
-/* #define STATUS_LED_BIT2 GPIO_PF4 */
-#endif
 
 /* define to enable splash screen support */
 
index 8297182a6c77352439af7dc3af22c8b6ffc9a680..6692acca68de405c3ff6fdaa5b853ba3befef847 100644 (file)
 #define CONFIG_MISC_INIT_R
 #define CONFIG_REVISION_TAG
 
-/* Status LED */
-#define CONFIG_STATUS_LED              /* Status LED enabled */
-#define CONFIG_GPIO_LED
-#define CONFIG_BOARD_SPECIFIC_LED
-#define GREEN_LED_DEV                  0
-                                       /* cl_som_am57x Green LED is GPIO2_5 */
-#define GREEN_LED_GPIO                 37
-#define STATUS_LED_BIT                 GREEN_LED_GPIO
-#define STATUS_LED_STATE               STATUS_LED_ON
-#define STATUS_LED_PERIOD              (CONFIG_SYS_HZ / 2)
-
 /* PMIC I2C bus number */
 #define CONFIG_SYS_SPD_BUS_NUM 3
 
index e693a5fe355c0a002bfd8ef308a86f653657946b..8d5f26a139c3d4261307e7d2973a78da01529b0d 100644 (file)
 #define GPIO_PIN(_bank, _pin)          ((_bank << 5) + _pin)
 
 /* Status LED */
-#define CONFIG_STATUS_LED
-#define CONFIG_GPIO_LED
-#define CONFIG_BOARD_SPECIFIC_LED
-#define STATUS_LED_BIT                 GPIO_PIN(2, 0)
 /* Status LED polarity is inversed, so init it in the "off" state */
-#define STATUS_LED_STATE               STATUS_LED_OFF
-#define STATUS_LED_PERIOD              (CONFIG_SYS_HZ / 2)
-#define STATUS_LED_BOOT                        0
 
 /* EEPROM */
 #define CONFIG_CMD_EEPROM
index 0c72443faff4a3f14898d13c8fe974f04b644213..ab695cba32fcfb855558545fe9c1a5b4bab1ad91 100644 (file)
                                         GENERATED_GBL_DATA_SIZE)
 
 /* Status LED */
-#define CONFIG_STATUS_LED              /* Status LED enabled */
-#define CONFIG_BOARD_SPECIFIC_LED
-#define CONFIG_GPIO_LED
 #define GREEN_LED_GPIO                 186 /* CM-T35 Green LED is GPIO186 */
-#define GREEN_LED_DEV                  0
-#define STATUS_LED_BIT                 GREEN_LED_GPIO
-#define STATUS_LED_STATE               STATUS_LED_ON
-#define STATUS_LED_PERIOD              (CONFIG_SYS_HZ / 2)
-#define STATUS_LED_BOOT                        GREEN_LED_DEV
 
 #define CONFIG_SPLASHIMAGE_GUARD
 
 /* GPIO banks */
-#ifdef CONFIG_STATUS_LED
+#ifdef CONFIG_LED_STATUS
 #define CONFIG_OMAP3_GPIO_6    /* GPIO186 is in GPIO bank 6  */
 #endif
 
index 874a88997d7d0a5131693f5682ca9582a12ebe0b..6ee61d5a8613f6ed79fb75445865950db34ae3c3 100644 (file)
                                         GENERATED_GBL_DATA_SIZE)
 
 /* Status LED */
-#define CONFIG_STATUS_LED              /* Status LED enabled */
-#define CONFIG_BOARD_SPECIFIC_LED
-#define CONFIG_GPIO_LED
 #define GREEN_LED_GPIO                 186 /* CM-T3517 Green LED is GPIO186 */
-#define GREEN_LED_DEV                  0
-#define STATUS_LED_BIT                 GREEN_LED_GPIO
-#define STATUS_LED_STATE               STATUS_LED_ON
-#define STATUS_LED_PERIOD              (CONFIG_SYS_HZ / 2)
-#define STATUS_LED_BOOT                        GREEN_LED_DEV
 
 /* GPIO banks */
-#ifdef CONFIG_STATUS_LED
+#ifdef CONFIG_LED_STATUS
 #define CONFIG_OMAP3_GPIO_6    /* GPIO186 is in GPIO bank 6  */
 #endif
 
index 4a868c552c3ab8cd512516b25b88e07e7e603a0e..dc08db681fa0d3b22737135024e2e8b9febcf24e 100644 (file)
 
 #define CONFIG_HW_WATCHDOG
 
-#define CONFIG_STATUS_LED
-#define CONFIG_BOARD_SPECIFIC_LED
 #define STATUS_LED_ACTIVE              0
-#define STATUS_LED_BIT                 0x0008  /* Timer7 GPIO */
-#define STATUS_LED_BOOT                        0
-#define STATUS_LED_PERIOD              (CONFIG_SYS_HZ / 2)
-#define STATUS_LED_STATE               STATUS_LED_OFF
 
 /*----------------------------------------------------------------------*
  * Configuration for environment                                       *
@@ -65,7 +59,6 @@
  */
 #define CONFIG_CMDLINE_EDITING
 #define CONFIG_CMD_DATE
-#define CONFIG_CMD_LED
 
 #define CONFIG_MCFTMR
 
index 9080b9a473df5de4f8d32bc97df9cd07c6bd4162..9cc62ed452f68bdc3c3dd162dd912ae2ab135561 100644 (file)
 #define CONFIG_PL01x_PORTS     {(void *)CONFIG_SYS_SERIAL0}
 
 /* Status LED */
-#define CONFIG_STATUS_LED              1 /* Status LED enabled */
-#define CONFIG_BOARD_SPECIFIC_LED      1
-#define STATUS_LED_GREEN               0
-#define STATUS_LED_RED                 1
-/* Green */
-#define STATUS_LED_BIT                 STATUS_LED_GREEN
-#define STATUS_LED_STATE               STATUS_LED_ON
-#define STATUS_LED_PERIOD              (CONFIG_SYS_HZ / 2)
-/* Red */
-#define STATUS_LED_BIT1                        STATUS_LED_RED
-#define STATUS_LED_STATE1              STATUS_LED_OFF
-#define STATUS_LED_PERIOD1             (CONFIG_SYS_HZ / 2)
 /* Optional value */
-#define STATUS_LED_BOOT                        STATUS_LED_BIT
 
 /* Network hardware configuration */
 #define CONFIG_DRIVER_EP93XX_MAC
index 917350f2ec0272baa51b3ff55f66a961217a36d5..9b8a7ea93c7012a8849cc443a4768c8deb4ce93f 100644 (file)
 /*
  * Status LED configuration
  */
-#define CONFIG_STATUS_LED              /* Status LED enabled */
-#define CONFIG_BOARD_SPECIFIC_LED
 
 #define ENABLE_GPIO_OUT                0x00000024
 #define LED_ON                 0x00000010
 
-#ifndef __ASSEMBLY__
-/*
- * In case of Motion-PRO, a LED is identified by its corresponding
- * GPT Enable and Mode Select Register.
- */
-typedef volatile unsigned long * led_id_t;
-
-extern void __led_init(led_id_t id, int state);
-extern void __led_toggle(led_id_t id);
-extern void __led_set(led_id_t id, int state);
-#endif /* __ASSEMBLY__ */
-
 /*
  * Temperature sensor
  */
index 36ff7ce986774548dc583af38dc661d6c7423a15..d05b9227d77c09b731da245775eae9f1a026cd6e 100644 (file)
@@ -14,8 +14,6 @@
 #define CONFIG_SYS_NO_FLASH
 #define CONFIG_DOS_PARTITION
 
-#define CONFIG_CMD_LED
-
 /* Memory configuration */
 #define CONFIG_NR_DRAM_BANKS           1               /* 1 bank of DRAM */
 #define PHYS_SDRAM_1                   0x40000000      /* Base address */
 #endif
 
 /* Status LED */
-#define CONFIG_STATUS_LED
-#define CONFIG_GPIO_LED
-#define CONFIG_BOARD_SPECIFIC_LED
-#define STATUS_LED_BOOT                0
-#define STATUS_LED_BIT         MX23_PAD_SSP1_DETECT__GPIO_2_1
-#define STATUS_LED_STATE       STATUS_LED_ON
-#define STATUS_LED_PERIOD      (CONFIG_SYS_HZ / 2)
 
 /* USB */
 #ifdef CONFIG_CMD_USB
index 9850aa6c059a99d08c229199c26343516db8d8cb..c69b32531cc50963eb01fa3fd1ab23262d86aaaf 100644 (file)
 #define CONFIG_ENV_OVERWRITE
 
 /* Status LED */
-#define CONFIG_STATUS_LED              1
-#define CONFIG_BOARD_SPECIFIC_LED      1
-#define STATUS_LED_BIT                 0x01
-#define STATUS_LED_STATE               STATUS_LED_ON
-#define STATUS_LED_PERIOD              (CONFIG_SYS_HZ / 2)
-#define STATUS_LED_BIT1                        0x02
-#define STATUS_LED_STATE1              STATUS_LED_ON
-#define STATUS_LED_PERIOD1             (CONFIG_SYS_HZ / 2)
-#define STATUS_LED_BOOT                        STATUS_LED_BIT
-#define STATUS_LED_GREEN               STATUS_LED_BIT1
 
 /* Enable Multi Bus support for I2C */
 #define CONFIG_I2C_MULTI_BUS           1
@@ -88,7 +78,6 @@
                                        "4m(kernel),-(fs)"
 
 #define CONFIG_CMD_NAND                /* NAND support                 */
-#define CONFIG_CMD_LED         /* LED support                  */
 
 #define CONFIG_VIDEO_OMAP3     /* DSS Support                  */
 
index e6d7db0da6929936623a45b538823c689f5d7574..ac0df3e08b3593b55746d9174d8d7ff4ff141861 100644 (file)
 /* Status LED available for IGEP0020 and IGEP0030 but not IGEP0032 */
 #if (CONFIG_MACH_TYPE == MACH_TYPE_IGEP0020) || \
                       (CONFIG_MACH_TYPE == MACH_TYPE_IGEP0030)
-#define CONFIG_STATUS_LED
-#define CONFIG_BOARD_SPECIFIC_LED
-#define CONFIG_GPIO_LED
 #if (CONFIG_MACH_TYPE == MACH_TYPE_IGEP0020)
 #define RED_LED_GPIO 27
 #elif (CONFIG_MACH_TYPE == MACH_TYPE_IGEP0030)
 #define RED_LED_GPIO 16
 #endif
-#define RED_LED_DEV                    0
-#define STATUS_LED_BIT                 RED_LED_GPIO
-#define STATUS_LED_STATE               STATUS_LED_ON
-#define STATUS_LED_PERIOD              (CONFIG_SYS_HZ / 2)
-#define STATUS_LED_BOOT                        RED_LED_DEV
 #endif
 
 /* GPIO banks */
index 94d10a3c4cdb331c2d261a47a3784cc0914cc3fa..427d559143656b557ac335b56bccfce23d20c15f 100644 (file)
@@ -15,7 +15,6 @@
 #define CONFIG_HW_WATCHDOG
 
 #define CONFIG_CMD_EEPROM
-#define CONFIG_CMD_LED
 
 /* Memory configurations */
 #define PHYS_SDRAM_1_SIZE              0x40000000      /* 1GiB on VINING_FPGA */
  *   2 ... Bottom Green
  *   3 ... Bottom Red
  */
-#define CONFIG_STATUS_LED
-#define CONFIG_GPIO_LED
-#define CONFIG_BOARD_SPECIFIC_LED
-#define STATUS_LED_BIT         48
-#define STATUS_LED_STATE       STATUS_LED_OFF
-#define STATUS_LED_PERIOD      (CONFIG_SYS_HZ / 2)
-#define STATUS_LED_BIT1                53
-#define STATUS_LED_STATE1      STATUS_LED_OFF
-#define STATUS_LED_PERIOD1     (CONFIG_SYS_HZ / 2)
-#define STATUS_LED_BIT2                54
-#define STATUS_LED_STATE2      STATUS_LED_OFF
-#define STATUS_LED_PERIOD2     (CONFIG_SYS_HZ / 2)
-#define STATUS_LED_BIT3                65
-#define STATUS_LED_STATE3      STATUS_LED_OFF
-#define STATUS_LED_PERIOD3     (CONFIG_SYS_HZ / 2)
 
 /* Ethernet on SoC (EMAC) */
 #if defined(CONFIG_CMD_NET)
index f05c1aacaf99ea892896f5cc7c87f1931eb42d82..6b3564110268420dc10061b831173cfff9a61a48 100644 (file)
@@ -42,7 +42,6 @@
 #define CONFIG_ENV_SECT_SIZE           (128 << 10)
 #define CONFIG_ENV_SIZE                        (8 << 10)
 
-#define CONFIG_BOARD_SPECIFIC_LED
 #define CONFIG_RED_LED                 110
 #define CONFIG_GREEN_LED               109
 
index 96f15cda781c3b9c7d877719e029312adae307a8..a378406659574f5ae4ebf15f95cec54cadd783a0 100644 (file)
 #define CONFIG_CMD_DATE
 
 /* LED */
-#define CONFIG_CMD_LED
-#define CONFIG_STATUS_LED
-#define CONFIG_BOARD_SPECIFIC_LED
-#define STATUS_LED_BIT                 0
-#define STATUS_LED_STATE               STATUS_LED_ON
-#define STATUS_LED_PERIOD              (CONFIG_SYS_HZ / 2)
-#define STATUS_LED_BIT1                        1
-#define STATUS_LED_STATE1              STATUS_LED_ON
-#define STATUS_LED_PERIOD1             (CONFIG_SYS_HZ / 2)
-#define STATUS_LED_BIT2                        2
-#define STATUS_LED_STATE2              STATUS_LED_ON
-#define STATUS_LED_PERIOD2             (CONFIG_SYS_HZ / 2)
-#define STATUS_LED_BIT3                        3
-#define STATUS_LED_STATE3              STATUS_LED_ON
-#define STATUS_LED_PERIOD3             (CONFIG_SYS_HZ / 2)
-#define STATUS_LED_BIT4                        4
-#define STATUS_LED_STATE4              STATUS_LED_ON
-#define STATUS_LED_PERIOD4             (CONFIG_SYS_HZ / 2)
-#define STATUS_LED_BIT5                        5
-#define STATUS_LED_STATE5              STATUS_LED_ON
-#define STATUS_LED_PERIOD5             (CONFIG_SYS_HZ / 2)
 
 /* Bootcounter */
 #define CONFIG_BOOTCOUNT_LIMIT
index a300f388576932105ff3f5b5024d128b4110f45f..a961e5c0e6bbec99d58004880a3dcafb5d78d465 100644 (file)
 #define CONFIG_OMAP3_GPIO_2            /* GPIO32..63 are in GPIO bank 2 */
 
 /* LED support */
-#define CONFIG_STATUS_LED
-#define CONFIG_BOARD_SPECIFIC_LED
-#define CONFIG_CMD_LED                 /* LED command */
-#define STATUS_LED_BIT                 (1 << 0)
-#define STATUS_LED_STATE               STATUS_LED_ON
-#define STATUS_LED_PERIOD              (CONFIG_SYS_HZ / 2)
-#define STATUS_LED_BIT1                        (1 << 1)
-#define STATUS_LED_STATE1              STATUS_LED_ON
-#define STATUS_LED_PERIOD1             (CONFIG_SYS_HZ / 2)
-#define STATUS_LED_BIT2                        (1 << 2)
-#define STATUS_LED_STATE2              STATUS_LED_ON
-#define STATUS_LED_PERIOD2             (CONFIG_SYS_HZ / 2)
 
 /* NS16550 Configuration */
 #define CONFIG_SYS_NS16550_SERIAL
index 229c2424f37d26c55f82f256b3fcad42e18755b9..7d013232b64a008852c81d9df23c99b9d095bc24 100644 (file)
 /*
  * Status LED
  */
-#define  CONFIG_STATUS_LED             /* Status LED enabled */
-#define  CONFIG_BOARD_SPECIFIC_LED     /* version has board specific leds */
 
 #define CONFIG_SYS_LED_BASE    MPC5XXX_GPT7_ENABLE     /* Timer 7 GPIO */
 #ifndef __ASSEMBLY__
index 396ea882eaccae038cb51cffb31dfb1b42a7ca1b..f838f362dd7f5382c90d798c527f5fe47f26dbab 100644 (file)
 #ifndef _STATUS_LED_H_
 #define        _STATUS_LED_H_
 
-#ifdef CONFIG_STATUS_LED
-
-#define STATUS_LED_OFF         0
-#define STATUS_LED_BLINKING    1
-#define STATUS_LED_ON          2
+#ifdef CONFIG_LED_STATUS
+
+#define LED_STATUS_PERIOD      (CONFIG_SYS_HZ / CONFIG_LED_STATUS_FREQ)
+#ifdef CONFIG_LED_STATUS1
+#define LED_STATUS_PERIOD1     (CONFIG_SYS_HZ / CONFIG_LED_STATUS_FREQ1)
+#endif /* CONFIG_LED_STATUS1 */
+#ifdef CONFIG_LED_STATUS2
+#define LED_STATUS_PERIOD2     (CONFIG_SYS_HZ / CONFIG_LED_STATUS_FREQ2)
+#endif /* CONFIG_LED_STATUS2 */
+#ifdef CONFIG_LED_STATUS3
+#define LED_STATUS_PERIOD3     (CONFIG_SYS_HZ / CONFIG_LED_STATUS_FREQ3)
+#endif /* CONFIG_LED_STATUS3 */
+#ifdef CONFIG_LED_STATUS4
+#define LED_STATUS_PERIOD4     (CONFIG_SYS_HZ / CONFIG_LED_STATUS_FREQ4)
+#endif /* CONFIG_LED_STATUS4 */
+#ifdef CONFIG_LED_STATUS5
+#define LED_STATUS_PERIOD5     (CONFIG_SYS_HZ / CONFIG_LED_STATUS_FREQ5)
+#endif /* CONFIG_LED_STATUS5 */
 
 void status_led_init(void);
 void status_led_tick (unsigned long timestamp);
@@ -34,14 +47,8 @@ void status_led_set  (int led, int state);
 # define STATUS_LED_ODR                im_cpm.cp_pbodr
 # define STATUS_LED_DAT                im_cpm.cp_pbdat
 
-# define STATUS_LED_BIT                0x00000001
-# define STATUS_LED_PERIOD     (CONFIG_SYS_HZ / 2)
-# define STATUS_LED_STATE      STATUS_LED_BLINKING
-
 # define STATUS_LED_ACTIVE     1               /* LED on for bit == 1  */
 
-# define STATUS_LED_BOOT       0               /* LED 0 used for boot status */
-
 /*****  MVS v1  **********************************************************/
 #elif (defined(CONFIG_MVS) && CONFIG_MVS < 2)
 # define STATUS_LED_PAR                im_ioport.iop_pdpar
@@ -49,17 +56,10 @@ void status_led_set  (int led, int state);
 # undef  STATUS_LED_ODR
 # define STATUS_LED_DAT                im_ioport.iop_pddat
 
-# define STATUS_LED_BIT                0x00000001
-# define STATUS_LED_PERIOD     (CONFIG_SYS_HZ / 2)
-# define STATUS_LED_STATE      STATUS_LED_BLINKING
-
 # define STATUS_LED_ACTIVE     1               /* LED on for bit == 1  */
 
-# define STATUS_LED_BOOT       0               /* LED 0 used for boot status */
-
 /*****  Someone else defines these  *************************************/
 #elif defined(STATUS_LED_PAR)
-
   /*
    * ADVICE: Define in your board configuration file rather than
    * filling this file up with lots of custom board stuff.
@@ -67,26 +67,9 @@ void status_led_set  (int led, int state);
 
 #elif defined(CONFIG_V38B)
 
-# define STATUS_LED_BIT                0x0010                  /* Timer7 GPIO */
-# define STATUS_LED_PERIOD     (CONFIG_SYS_HZ / 2)
-# define STATUS_LED_STATE      STATUS_LED_BLINKING
-
 # define STATUS_LED_ACTIVE     0               /* LED on for bit == 0 */
-# define STATUS_LED_BOOT       0               /* LED 0 used for boot status */
-
-#elif defined(CONFIG_MOTIONPRO)
-
-#define STATUS_LED_BIT         ((vu_long *) MPC5XXX_GPT6_ENABLE)
-#define STATUS_LED_PERIOD      (CONFIG_SYS_HZ / 10)
-#define STATUS_LED_STATE       STATUS_LED_BLINKING
-
-#define STATUS_LED_BIT1                ((vu_long *) MPC5XXX_GPT7_ENABLE)
-#define STATUS_LED_PERIOD1     (CONFIG_SYS_HZ / 10)
-#define STATUS_LED_STATE1      STATUS_LED_OFF
-
-#define STATUS_LED_BOOT                0       /* LED 0 used for boot status */
 
-#elif defined(CONFIG_BOARD_SPECIFIC_LED)
+#elif defined(CONFIG_LED_STATUS_BOARD_SPECIFIC)
 /* led_id_t is unsigned long mask */
 typedef unsigned long led_id_t;
 
@@ -99,11 +82,11 @@ void __led_blink(led_id_t mask, int freq);
 #endif
 /************************************************************************/
 
-#ifndef CONFIG_BOARD_SPECIFIC_LED
+#ifndef CONFIG_LED_STATUS_BOARD_SPECIFIC
 # include <asm/status_led.h>
 #endif
 
-#endif /* CONFIG_STATUS_LED    */
+#endif /* CONFIG_LED_STATUS    */
 
 /*
  * Coloured LEDs API
index 42e14eda417436b0b6ef133055185e2ecb895029..be8f710e0c5ca9bb0a2a884891932966c86d21c6 100644 (file)
@@ -15,7 +15,7 @@
 #include <net/tftp.h>
 #include "bootp.h"
 #include "nfs.h"
-#ifdef CONFIG_STATUS_LED
+#ifdef CONFIG_LED_STATUS
 #include <status_led.h>
 #endif
 #ifdef CONFIG_BOOTP_RANDOM_DELAY
@@ -359,8 +359,8 @@ static void bootp_handler(uchar *pkt, unsigned dest, struct in_addr sip,
        /*
         *      Got a good BOOTP reply.  Copy the data into our variables.
         */
-#if defined(CONFIG_STATUS_LED) && defined(STATUS_LED_BOOT)
-       status_led_set(STATUS_LED_BOOT, STATUS_LED_OFF);
+#if defined(CONFIG_LED_STATUS) && defined(CONFIG_LED_STATUS_BOOT_ENABLE)
+       status_led_set(CONFIG_LED_STATUS_BOOT, CONFIG_LED_STATUS_OFF);
 #endif
 
        store_net_params(bp);           /* Store net parameters from reply */
index 671d45dd83c9aab9b6c56a9136a698f677a3d63e..6e678770fa9dc7dbdbe6039173622c39d28a0107 100644 (file)
--- a/net/net.c
+++ b/net/net.c
@@ -88,7 +88,7 @@
 #include <errno.h>
 #include <net.h>
 #include <net/tftp.h>
-#if defined(CONFIG_STATUS_LED)
+#if defined(CONFIG_LED_STATUS)
 #include <miiphy.h>
 #include <status_led.h>
 #endif
@@ -518,15 +518,15 @@ restart:
 
 #if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
 #if    defined(CONFIG_SYS_FAULT_ECHO_LINK_DOWN)        && \
-       defined(CONFIG_STATUS_LED)                      && \
-       defined(STATUS_LED_RED)
+       defined(CONFIG_LED_STATUS)                      && \
+       defined(CONFIG_LED_STATUS_RED)
        /*
         * Echo the inverted link state to the fault LED.
         */
        if (miiphy_link(eth_get_dev()->name, CONFIG_SYS_FAULT_MII_ADDR))
-               status_led_set(STATUS_LED_RED, STATUS_LED_OFF);
+               status_led_set(CONFIG_LED_STATUS_RED, CONFIG_LED_STATUS_OFF);
        else
-               status_led_set(STATUS_LED_RED, STATUS_LED_ON);
+               status_led_set(CONFIG_LED_STATUS_RED, CONFIG_LED_STATUS_ON);
 #endif /* CONFIG_SYS_FAULT_ECHO_LINK_DOWN, ... */
 #endif /* CONFIG_MII, ... */
 #ifdef CONFIG_USB_KEYBOARD
@@ -583,16 +583,18 @@ restart:
 
 #if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
 #if    defined(CONFIG_SYS_FAULT_ECHO_LINK_DOWN)        && \
-       defined(CONFIG_STATUS_LED)                      && \
-       defined(STATUS_LED_RED)
+       defined(CONFIG_LED_STATUS)                      && \
+       defined(CONFIG_LED_STATUS_RED)
                        /*
                         * Echo the inverted link state to the fault LED.
                         */
                        if (miiphy_link(eth_get_dev()->name,
                                        CONFIG_SYS_FAULT_MII_ADDR))
-                               status_led_set(STATUS_LED_RED, STATUS_LED_OFF);
+                               status_led_set(CONFIG_LED_STATUS_RED,
+                                              CONFIG_LED_STATUS_OFF);
                        else
-                               status_led_set(STATUS_LED_RED, STATUS_LED_ON);
+                               status_led_set(CONFIG_LED_STATUS_RED,
+                                              CONFIG_LED_STATUS_ON);
 #endif /* CONFIG_SYS_FAULT_ECHO_LINK_DOWN, ... */
 #endif /* CONFIG_MII, ... */
                        debug_cond(DEBUG_INT_STATE, "--- net_loop timeout\n");
index 95013b35eeea881b0a04f4e146d3465292a099fe..fb9fb3472ce0929937afa60838e8ab3be2ac2217 100644 (file)
@@ -332,7 +332,6 @@ CONFIG_BOARD_POSTCLK_INIT
 CONFIG_BOARD_RESET
 CONFIG_BOARD_REVISION_TAG
 CONFIG_BOARD_SIZE_LIMIT
-CONFIG_BOARD_SPECIFIC_LED
 CONFIG_BOARD_TAURUS
 CONFIG_BOARD_TYPES
 CONFIG_BOOGER
@@ -536,7 +535,6 @@ CONFIG_CMD_IRQ
 CONFIG_CMD_JFFS2
 CONFIG_CMD_KGDB
 CONFIG_CMD_LDRINFO
-CONFIG_CMD_LED
 CONFIG_CMD_LOADY
 CONFIG_CMD_LZMADEC
 CONFIG_CMD_MAX6957
@@ -1318,7 +1316,6 @@ CONFIG_GPCS_PHY3_ADDR
 CONFIG_GPCS_PHY_ADDR
 CONFIG_GPIO
 CONFIG_GPIO_ENABLE_SPI_FLASH
-CONFIG_GPIO_LED
 CONFIG_GPIO_LED_INVERTED_TABLE
 CONFIG_GPIO_LED_STUBS
 CONFIG_GREEN_LED
@@ -3096,7 +3093,6 @@ CONFIG_STAMP_CF
 CONFIG_STANDALONE_LOAD_ADDR
 CONFIG_STATIC_BOARD_REV
 CONFIG_STATIC_RELA
-CONFIG_STATUS_LED
 CONFIG_STD_DEVICES_SETTINGS
 CONFIG_STK52XX
 CONFIG_STK52XX_REV100