diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-09-27 10:18:15 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-09-27 10:18:15 +0000 |
commit | e3bcbeb4277ad59a7c11f14e84aa5cb503c81543 (patch) | |
tree | 31f510fbe10a81b76997f04e8ab7aa04f40c518b /target/linux/ramips/files/arch/mips/include | |
parent | 80d2da9f0ffcc665ac7a383b571bc07574dd3aff (diff) | |
download | master-31e0f0ae-e3bcbeb4277ad59a7c11f14e84aa5cb503c81543.tar.gz master-31e0f0ae-e3bcbeb4277ad59a7c11f14e84aa5cb503c81543.tar.bz2 master-31e0f0ae-e3bcbeb4277ad59a7c11f14e84aa5cb503c81543.zip |
ramips: add memory detection code for RT5350
SVN-Revision: 33571
Diffstat (limited to 'target/linux/ramips/files/arch/mips/include')
-rw-r--r-- | target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x_regs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x_regs.h b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x_regs.h index 930b3337b9..949232dbd2 100644 --- a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x_regs.h +++ b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x_regs.h @@ -103,6 +103,13 @@ #define RT5350_SYSCFG0_CPUCLK_360 0x0 #define RT5350_SYSCFG0_CPUCLK_320 0x2 #define RT5350_SYSCFG0_CPUCLK_300 0x3 +#define RT5350_SYSCFG0_DRAM_SIZE_SHIFT 12 +#define RT5350_SYSCFG0_DRAM_SIZE_MASK 7 +#define RT5350_SYSCFG0_DRAM_SIZE_2M 0 +#define RT5350_SYSCFG0_DRAM_SIZE_8M 1 +#define RT5350_SYSCFG0_DRAM_SIZE_16M 2 +#define RT5350_SYSCFG0_DRAM_SIZE_32M 3 +#define RT5350_SYSCFG0_DRAM_SIZE_64M 4 #define RT3352_SYSCFG1_USB0_HOST_MODE BIT(10) |