diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-06-01 13:12:27 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-06-01 13:12:27 +0000 |
commit | f3e2f1b8ba0bcd0a8848e19297d02fd0f3f51c71 (patch) | |
tree | 200665ebd04b68e28e0a28956cfdee02ec94a21c /target/linux | |
parent | fe2f4cd7cca1dc16a53ea450d4c44f93b427511c (diff) | |
download | upstream-f3e2f1b8ba0bcd0a8848e19297d02fd0f3f51c71.tar.gz upstream-f3e2f1b8ba0bcd0a8848e19297d02fd0f3f51c71.tar.bz2 upstream-f3e2f1b8ba0bcd0a8848e19297d02fd0f3f51c71.zip |
ar71xx: init get_mac_revision on AR9330 rev 1
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27081 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/dev-ar9xxx-wmac.c | 8 |
1 files changed, 8 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 f07d368362..d4104726b6 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 @@ -63,6 +63,11 @@ static void ar913x_wmac_init(void) ar9xxx_wmac_resources[0].end = AR91XX_WMAC_BASE + AR91XX_WMAC_SIZE - 1; } +static int ar933x_r1_get_wmac_revision(void) +{ + return ar71xx_soc_rev; +} + static void ar933x_wmac_init(void) { ar9xxx_wmac_device.name = "ar933x_wmac"; @@ -70,6 +75,9 @@ static void ar933x_wmac_init(void) ar9xxx_wmac_resources[0].end = AR933X_WMAC_BASE + AR933X_WMAC_SIZE - 1; if (ar71xx_ref_freq == MHZ_25) ar9xxx_wmac_data.is_clk_25mhz = true; + + if (ar71xx_soc_rev == 1) + ar9xxx_wmac_data.get_mac_revision = ar933x_r1_get_wmac_revision; } static void ar934x_wmac_init(void) |