]> git.sur5r.net Git - u-boot/blobdiff - include/status_led.h
* Code cleanup:
[u-boot] / include / status_led.h
index c1fb7f3f23c26ab9fa14114a6697279096cc9fe5..47f7c355afe6f5014951bd990b3e18537e680882 100644 (file)
@@ -236,6 +236,8 @@ void status_led_set  (int led, int state);
 /*****  NetVia   ********************************************************/
 #elif defined(CONFIG_NETVIA)
 
+#if !defined(CONFIG_NETVIA_VERSION) || CONFIG_NETVIA_VERSION == 1
+
 #define STATUS_LED_PAR         im_ioport.iop_pdpar
 #define STATUS_LED_DIR         im_ioport.iop_pddir
 #undef  STATUS_LED_ODR
@@ -252,11 +254,12 @@ void status_led_set  (int led, int state);
 # define STATUS_LED_ACTIVE     0               /* LED on for bit == 0  */
 # define STATUS_LED_BOOT       0               /* LED 0 used for boot status */
 
+#endif
 
 /*****  CMI   ********************************************************/
 #elif defined(CONFIG_CMI)
-# define STATUS_LED_DIR                im_mios.mios_mpiosm32ddr 
-# define STATUS_LED_DAT                im_mios.mios_mpiosm32dr 
+# define STATUS_LED_DIR                im_mios.mios_mpiosm32ddr
+# define STATUS_LED_DAT                im_mios.mios_mpiosm32dr
 
 # define STATUS_LED_BIT                0x2000          /* Select one of the 16 possible*/
                                                /* MIOS outputs */
@@ -321,6 +324,10 @@ void status_led_set  (int led, int state);
 #endif
 /************************************************************************/
 
+#ifndef CONFIG_BOARD_SPECIFIC_LED
+# include <asm/status_led.h>
+#endif
+
 #endif /* CONFIG_STATUS_LED    */
 
 #endif /* _STATUS_LED_H_       */