diff options
author | Vasanthakumar Thiagarajan <vasanth@atheros.com> | 2011-04-19 09:59:01 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-25 14:50:08 -0400 |
commit | f2f5f2a1cedc803a5a517557d436e6cb10c007de (patch) | |
tree | 6386a001a22615d8591179cf7204f1a902d65f1f | |
parent | 35d5f56125aba8667ac12277dff02ce51efbee16 (diff) |
ath9k_hw: Get AHB clock information from ath9k_platform_data
Add a bool in ath9k_platform_data to pass AHB clock speed information.
Driver needs this to configure PLL on some SOCs.
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/init.c | 1 | ||||
-rw-r--r-- | include/linux/ath9k_platform.h | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index 450b64263bc9..5a4ba09a2f1c 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h | |||
@@ -846,6 +846,8 @@ struct ath_hw { | |||
846 | 846 | ||
847 | /* Enterprise mode cap */ | 847 | /* Enterprise mode cap */ |
848 | u32 ent_mode; | 848 | u32 ent_mode; |
849 | |||
850 | bool is_clk_25mhz; | ||
849 | }; | 851 | }; |
850 | 852 | ||
851 | struct ath_bus_ops { | 853 | struct ath_bus_ops { |
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index 1ac8318d82a3..e78b6aefa108 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c | |||
@@ -574,6 +574,7 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc, u16 subsysid, | |||
574 | sc->sc_ah->gpio_mask = pdata->gpio_mask; | 574 | sc->sc_ah->gpio_mask = pdata->gpio_mask; |
575 | sc->sc_ah->gpio_val = pdata->gpio_val; | 575 | sc->sc_ah->gpio_val = pdata->gpio_val; |
576 | sc->sc_ah->led_pin = pdata->led_pin; | 576 | sc->sc_ah->led_pin = pdata->led_pin; |
577 | ah->is_clk_25mhz = pdata->is_clk_25mhz; | ||
577 | } | 578 | } |
578 | 579 | ||
579 | common = ath9k_hw_common(ah); | 580 | common = ath9k_hw_common(ah); |
diff --git a/include/linux/ath9k_platform.h b/include/linux/ath9k_platform.h index 020387a114e3..60a7c49dcb49 100644 --- a/include/linux/ath9k_platform.h +++ b/include/linux/ath9k_platform.h | |||
@@ -28,6 +28,8 @@ struct ath9k_platform_data { | |||
28 | int led_pin; | 28 | int led_pin; |
29 | u32 gpio_mask; | 29 | u32 gpio_mask; |
30 | u32 gpio_val; | 30 | u32 gpio_val; |
31 | |||
32 | bool is_clk_25mhz; | ||
31 | }; | 33 | }; |
32 | 34 | ||
33 | #endif /* _LINUX_ATH9K_PLATFORM_H */ | 35 | #endif /* _LINUX_ATH9K_PLATFORM_H */ |