diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-05-31 22:53:15 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-05-31 22:53:15 +0000 |
commit | 3097d45727c4305bbd4217fc196d1bd81060475a (patch) | |
tree | e48f8a7071b21f3fb40f1c89c3493356cea1677f /target/linux/ar71xx | |
parent | a89ae2138bb2796fafab04d988bf2b9bd65e7146 (diff) | |
download | master-187ad058-3097d45727c4305bbd4217fc196d1bd81060475a.tar.gz master-187ad058-3097d45727c4305bbd4217fc196d1bd81060475a.tar.bz2 master-187ad058-3097d45727c4305bbd4217fc196d1bd81060475a.zip |
ar71xx: initialize is_clk_25mhz field for AR9340 WMAC
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27045 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/dev-ar9xxx-wmac.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/dev-ar9xxx-wmac.c b/target/linux/ar71xx/files/arch/mips/ar71xx/dev-ar9xxx-wmac.c index 5bac35bdef..ade61e46c7 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/dev-ar9xxx-wmac.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/dev-ar9xxx-wmac.c @@ -23,6 +23,8 @@ #include "dev-ar9xxx-wmac.h" +#define MHZ_25 (25 * 1000 * 1000) + static struct ath9k_platform_data ar9xxx_wmac_data = { .led_pin = -1, }; @@ -66,6 +68,8 @@ static void ar934x_wmac_init(void) ar9xxx_wmac_device.name = "ar934x_wmac"; ar9xxx_wmac_resources[0].start = AR934X_WMAC_BASE; ar9xxx_wmac_resources[0].end = AR934X_WMAC_BASE + AR934X_WMAC_SIZE - 1; + if (ar71xx_ref_freq == MHZ_25) + ar9xxx_wmac_data.is_clk_25mhz = true; } void __init ar9xxx_add_device_wmac(u8 *cal_data, u8 *mac_addr) |