linux-mips
[Top] [All Lists]

[PATCH 1/5] MIPS: ralink: mt7620: add verbose ram info

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH 1/5] MIPS: ralink: mt7620: add verbose ram info
From: John Crispin <blogic@openwrt.org>
Date: Thu, 8 Aug 2013 13:17:48 +0200
Cc: linux-mips@linux-mips.org, John Crispin <blogic@openwrt.org>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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(+)

diff --git a/arch/mips/ralink/mt7620.c b/arch/mips/ralink/mt7620.c
index 0018b1a..ccdec5a 100644
--- a/arch/mips/ralink/mt7620.c
+++ b/arch/mips/ralink/mt7620.c
@@ -214,16 +214,19 @@ void prom_soc_init(struct ralink_soc_info *soc_info)
 
        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;
-- 
1.7.10.4


<Prev in Thread] Current Thread [Next in Thread>