From: Gabor Juhos Date: Wed, 1 Jun 2011 13:12:27 +0000 (+0000) Subject: ar71xx: init get_mac_revision on AR9330 rev 1 X-Git-Tag: reboot~16630 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f0c7b93e5d0d7997a20da2f304f0a6b9da5618af;p=openwrt%2Fstaging%2Fblogic.git ar71xx: init get_mac_revision on AR9330 rev 1 SVN-Revision: 27081 --- 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 f07d36836202..d4104726b68a 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)