Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: ralink: add RT5350 sdram register defines

Add a few missing defines that are needed to make memory detection work on the
RT5350.

Signed-off-by: John Crispin <blogic@openwrt.org>
Acked-by: Gabor Juhos <juhosg@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/5169/

authored by

John Crispin and committed by
Ralf Baechle
8ddc2513 29473822

+8
+8
arch/mips/include/asm/mach-ralink/rt305x.h
··· 97 97 #define RT5350_SYSCFG0_CPUCLK_320 0x2 98 98 #define RT5350_SYSCFG0_CPUCLK_300 0x3 99 99 100 + #define RT5350_SYSCFG0_DRAM_SIZE_SHIFT 12 101 + #define RT5350_SYSCFG0_DRAM_SIZE_MASK 7 102 + #define RT5350_SYSCFG0_DRAM_SIZE_2M 0 103 + #define RT5350_SYSCFG0_DRAM_SIZE_8M 1 104 + #define RT5350_SYSCFG0_DRAM_SIZE_16M 2 105 + #define RT5350_SYSCFG0_DRAM_SIZE_32M 3 106 + #define RT5350_SYSCFG0_DRAM_SIZE_64M 4 107 + 100 108 /* multi function gpio pins */ 101 109 #define RT305X_GPIO_I2C_SD 1 102 110 #define RT305X_GPIO_I2C_SCLK 2