ar71xx: fix MDIO access on ar7242 (based on a patch by Jess Zhu)
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / files / arch / mips / include / asm / mach-ar71xx / ar71xx.h
index 2a540a83e477cb13bf47ef1ac74d0e0009ed9e80..48c4a739d6b4f443e646b9e2449c687e0e47387f 100644 (file)
@@ -71,7 +71,7 @@
 #define AR91XX_WMAC_SIZE       0x30000
 
 #define AR934X_WMAC_BASE       (AR71XX_APB_BASE + 0x00100000)
-#define AR934X_WMAC_SIZE       0x1ffff
+#define AR934X_WMAC_SIZE       0x20000
 
 #define AR71XX_MEM_SIZE_MIN    0x0200000
 #define AR71XX_MEM_SIZE_MAX    0x10000000
 extern u32 ar71xx_ahb_freq;
 extern u32 ar71xx_cpu_freq;
 extern u32 ar71xx_ddr_freq;
-extern u32 ar934x_ref_freq;
+extern u32 ar71xx_ref_freq;
 
 enum ar71xx_soc_type {
        AR71XX_SOC_UNKNOWN,
@@ -166,6 +166,8 @@ extern enum ar71xx_soc_type ar71xx_soc;
 #define AR724X_DDR_DIV_SHIFT           22
 #define AR724X_DDR_DIV_MASK            0x3
 
+#define AR7242_PLL_REG_ETH0_INT_CLOCK  0x2c
+
 #define AR91XX_PLL_REG_CPU_CONFIG      0x00
 #define AR91XX_PLL_REG_ETH_CONFIG      0x04
 #define AR91XX_PLL_REG_ETH0_INT_CLOCK  0x14