2013-06-23 15:50:49 +00:00
|
|
|
From eb6f94f9d53a0eecf0ff8edd5318ee2dd5403a01 Mon Sep 17 00:00:00 2001
|
|
|
|
From: John Crispin <blogic@openwrt.org>
|
|
|
|
Date: Mon, 20 May 2013 20:30:11 +0200
|
|
|
|
Subject: [PATCH 132/164] MIPS: ralink: make mt7620 ram detect verbose
|
|
|
|
|
|
|
|
Make the code print which of SDRAM, DDR1 or DDR2 was detected.
|
|
|
|
|
|
|
|
Signed-off-by: John Crispin <blogic@openwrt.org>
|
|
|
|
---
|
|
|
|
arch/mips/ralink/mt7620.c | 3 +++
|
|
|
|
1 file changed, 3 insertions(+)
|
|
|
|
|
|
|
|
--- a/arch/mips/ralink/mt7620.c
|
|
|
|
+++ b/arch/mips/ralink/mt7620.c
|
2013-06-30 13:10:12 +00:00
|
|
|
@@ -214,16 +214,19 @@ void prom_soc_init(struct ralink_soc_inf
|
2013-06-23 15:50:49 +00:00
|
|
|
|
|
|
|
switch (dram_type) {
|
|
|
|
case SYSCFG0_DRAM_TYPE_SDRAM:
|
|
|
|
+ pr_info("Board has SDRAM\n");
|
|
|
|
soc_info->mem_size_min = MT7620_SDRAM_SIZE_MIN;
|
|
|
|
soc_info->mem_size_max = MT7620_SDRAM_SIZE_MAX;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SYSCFG0_DRAM_TYPE_DDR1:
|
|
|
|
+ pr_info("Board has DDR1\n");
|
|
|
|
soc_info->mem_size_min = MT7620_DDR1_SIZE_MIN;
|
|
|
|
soc_info->mem_size_max = MT7620_DDR1_SIZE_MAX;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SYSCFG0_DRAM_TYPE_DDR2:
|
|
|
|
+ pr_info("Board has DDR2\n");
|
|
|
|
soc_info->mem_size_min = MT7620_DDR2_SIZE_MIN;
|
|
|
|
soc_info->mem_size_max = MT7620_DDR2_SIZE_MAX;
|
|
|
|
break;
|