]> git.sur5r.net Git - u-boot/blobdiff - include/status_led.h
Add configuration for wtk board
[u-boot] / include / status_led.h
index 5a33e31e933616ef7b021e96d1dfa6a383f936be..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 */