e98a254dd47e1a121fb5d9db64dc1f329c64b64a
[openwrt/svn-archive/archive.git] / target / linux / ramips / patches-3.9 / 0132-MIPS-ralink-make-mt7620-ram-detect-verbose.patch
1 From eb6f94f9d53a0eecf0ff8edd5318ee2dd5403a01 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Mon, 20 May 2013 20:30:11 +0200
4 Subject: [PATCH 132/164] MIPS: ralink: make mt7620 ram detect verbose
5
6 Make the code print which of SDRAM, DDR1 or DDR2 was detected.
7
8 Signed-off-by: John Crispin <blogic@openwrt.org>
9 ---
10 arch/mips/ralink/mt7620.c | 3 +++
11 1 file changed, 3 insertions(+)
12
13 diff --git a/arch/mips/ralink/mt7620.c b/arch/mips/ralink/mt7620.c
14 index 98ddb93..28350d0 100644
15 --- a/arch/mips/ralink/mt7620.c
16 +++ b/arch/mips/ralink/mt7620.c
17 @@ -214,16 +214,19 @@ void prom_soc_init(struct ralink_soc_info *soc_info)
18
19 switch (dram_type) {
20 case SYSCFG0_DRAM_TYPE_SDRAM:
21 + pr_info("Board has SDRAM\n");
22 soc_info->mem_size_min = MT7620_SDRAM_SIZE_MIN;
23 soc_info->mem_size_max = MT7620_SDRAM_SIZE_MAX;
24 break;
25
26 case SYSCFG0_DRAM_TYPE_DDR1:
27 + pr_info("Board has DDR1\n");
28 soc_info->mem_size_min = MT7620_DDR1_SIZE_MIN;
29 soc_info->mem_size_max = MT7620_DDR1_SIZE_MAX;
30 break;
31
32 case SYSCFG0_DRAM_TYPE_DDR2:
33 + pr_info("Board has DDR2\n");
34 soc_info->mem_size_min = MT7620_DDR2_SIZE_MIN;
35 soc_info->mem_size_max = MT7620_DDR2_SIZE_MAX;
36 break;
37 --
38 1.7.10.4
39