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

MIPS: ralink: mt7620: Add verbose ram info

Make the code print which of SDRAM, DDR1 or DDR2 was detected.

Signed-off-by: John Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/5671/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

John Crispin and committed by
Ralf Baechle
538e0daa b1f172a1

+3
+3
arch/mips/ralink/mt7620.c
··· 214 214 215 215 switch (dram_type) { 216 216 case SYSCFG0_DRAM_TYPE_SDRAM: 217 + pr_info("Board has SDRAM\n"); 217 218 soc_info->mem_size_min = MT7620_SDRAM_SIZE_MIN; 218 219 soc_info->mem_size_max = MT7620_SDRAM_SIZE_MAX; 219 220 break; 220 221 221 222 case SYSCFG0_DRAM_TYPE_DDR1: 223 + pr_info("Board has DDR1\n"); 222 224 soc_info->mem_size_min = MT7620_DDR1_SIZE_MIN; 223 225 soc_info->mem_size_max = MT7620_DDR1_SIZE_MAX; 224 226 break; 225 227 226 228 case SYSCFG0_DRAM_TYPE_DDR2: 229 + pr_info("Board has DDR2\n"); 227 230 soc_info->mem_size_min = MT7620_DDR2_SIZE_MIN; 228 231 soc_info->mem_size_max = MT7620_DDR2_SIZE_MAX; 229 232 break;