From dafecee8bb4e56af4d3a5f47b5982e6eff5d60b0 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sat, 13 Apr 2013 15:13:40 +0200 Subject: MIPS: ralink: add memory definition for RT305x Populate struct soc_info with the data that describes our RAM window. As memory detection fails on RT5350 we read the amount of available memory from the system controller. Signed-off-by: John Crispin Patchwork: http://patchwork.linux-mips.org/patch/5180/ --- arch/mips/include/asm/mach-ralink/rt305x.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'arch/mips/include/asm/mach-ralink/rt305x.h') diff --git a/arch/mips/include/asm/mach-ralink/rt305x.h b/arch/mips/include/asm/mach-ralink/rt305x.h index 80cda8af7ac..069bf37a601 100644 --- a/arch/mips/include/asm/mach-ralink/rt305x.h +++ b/arch/mips/include/asm/mach-ralink/rt305x.h @@ -157,4 +157,10 @@ static inline int soc_is_rt5350(void) #define RT3352_RSTCTRL_UDEV BIT(25) #define RT3352_SYSCFG1_USB0_HOST_MODE BIT(10) +#define RT305X_SDRAM_BASE 0x00000000 +#define RT305X_MEM_SIZE_MIN 2 +#define RT305X_MEM_SIZE_MAX 64 +#define RT3352_MEM_SIZE_MIN 2 +#define RT3352_MEM_SIZE_MAX 256 + #endif -- cgit v1.2.3-70-g09d2