diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-07-01 19:34:59 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-07-01 19:34:59 +0000 |
commit | 4a046eb2dda19bb8fa7cb7e1d388de0088c30561 (patch) | |
tree | f2a3d94467132817ad2a78afee12368d6f621b42 /target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx | |
parent | 504e43877e56c9b5595e34abf05d1e45b48edde0 (diff) | |
download | master-187ad058-4a046eb2dda19bb8fa7cb7e1d388de0088c30561.tar.gz master-187ad058-4a046eb2dda19bb8fa7cb7e1d388de0088c30561.tar.bz2 master-187ad058-4a046eb2dda19bb8fa7cb7e1d388de0088c30561.zip |
[ar71xx] add AR7240 specific frequency detection
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16645 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h index 198c4bfc01..8a45a0c90e 100644 --- a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h +++ b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h @@ -157,6 +157,17 @@ extern enum ar71xx_mach_type ar71xx_mach; #define AR71XX_ETH0_PLL_SHIFT 17 #define AR71XX_ETH1_PLL_SHIFT 19 +#define AR724X_PLL_REG_CPU_CONFIG 0x00 + +#define AR724X_PLL_DIV_SHIFT 0 +#define AR724X_PLL_DIV_MASK 0x3ff +#define AR724X_PLL_REF_DIV_SHIFT 10 +#define AR724X_PLL_REF_DIV_MASK 0xf +#define AR724X_AHB_DIV_SHIFT 19 +#define AR724X_AHB_DIV_MASK 0x1 +#define AR724X_DDR_DIV_SHIFT 22 +#define AR724X_DDR_DIV_MASK 0x3 + #define AR91XX_PLL_REG_CPU_CONFIG 0x00 #define AR91XX_PLL_REG_ETH_CONFIG 0x04 #define AR91XX_PLL_REG_ETH0_INT_CLOCK 0x14 |