Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255875
b: refs/heads/master
c: 3762561
h: refs/heads/master
i:
  255873: 169043a
  255871: 59b42c0
v: v3
  • Loading branch information
Gabor Juhos authored and John W. Linville committed Jun 22, 2011
1 parent cef6168 commit 44266c7
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 03689301da71fa80957a166e211431bb6e2904e3
refs/heads/master: 3762561aa8afb0bd9fb60d3d847961f9945f8143
9 changes: 9 additions & 0 deletions trunk/drivers/net/wireless/ath/ath9k/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,15 @@ static void ath9k_hw_read_revisions(struct ath_hw *ah)
case AR5416_AR9100_DEVID:
ah->hw_version.macVersion = AR_SREV_VERSION_9100;
break;
case AR9300_DEVID_AR9330:
ah->hw_version.macVersion = AR_SREV_VERSION_9330;
if (ah->get_mac_revision) {
ah->hw_version.macRev = ah->get_mac_revision();
} else {
val = REG_READ(ah, AR_SREV);
ah->hw_version.macRev = MS(val, AR_SREV_REVISION2);
}
return;
case AR9300_DEVID_AR9340:
ah->hw_version.macVersion = AR_SREV_VERSION_9340;
val = REG_READ(ah, AR_SREV);
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/net/wireless/ath/ath9k/hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,7 @@ struct ath_hw {
u32 ent_mode;

bool is_clk_25mhz;
int (*get_mac_revision)(void);
};

struct ath_bus_ops {
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/net/wireless/ath/ath9k/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,7 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc, u16 subsysid,
sc->sc_ah->gpio_val = pdata->gpio_val;
sc->sc_ah->led_pin = pdata->led_pin;
ah->is_clk_25mhz = pdata->is_clk_25mhz;
ah->get_mac_revision = pdata->get_mac_revision;
}

common = ath9k_hw_common(ah);
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/ath9k_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ struct ath9k_platform_data {
u32 gpio_val;

bool is_clk_25mhz;
int (*get_mac_revision)(void);
};

#endif /* _LINUX_ATH9K_PLATFORM_H */

0 comments on commit 44266c7

Please sign in to comment.