ath9k: enable LED pin for AR946/8x chipsets
authorMohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Wed, 14 Sep 2011 09:39:13 +0000 (15:09 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 16 Sep 2011 20:45:35 +0000 (16:45 -0400)
now the LED starts working for AR946/8x chipsets

Cc: "Balasubramanian, senthilkumar" <senthilb@qca.qualcomm.com>
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/gpio.c

index 0fb4a26f89797f53d875327246d7e1c1c50c678e..45be0a3fe5c1d3a04de1ea61abdccb5897ff615d 100644 (file)
@@ -461,6 +461,7 @@ void ath9k_btcoex_timer_pause(struct ath_softc *sc);
 #define ATH_LED_PIN_9287               8
 #define ATH_LED_PIN_9300               10
 #define ATH_LED_PIN_9485               6
+#define ATH_LED_PIN_9480               0
 
 #ifdef CONFIG_MAC80211_LEDS
 void ath_init_leds(struct ath_softc *sc);
index 5113dd80c99fb707946f69e073f59fbcc0f6613e..afbf5400a52a55f46fd1a815a46aed93bade7565 100644 (file)
@@ -48,6 +48,8 @@ void ath_init_leds(struct ath_softc *sc)
                        sc->sc_ah->led_pin = ATH_LED_PIN_9485;
                else if (AR_SREV_9300(sc->sc_ah))
                        sc->sc_ah->led_pin = ATH_LED_PIN_9300;
+               else if (AR_SREV_9480(sc->sc_ah))
+                       sc->sc_ah->led_pin = ATH_LED_PIN_9480;
                else
                        sc->sc_ah->led_pin = ATH_LED_PIN_DEF;
        }