ramips: basic support for Planex MZK-750DHP
[openwrt/openwrt.git] / target / linux / ramips / patches-3.10 / 0013-MIPS-ralink-mt7620-add-verbose-ram-info.patch
1 From 2d17c793a9cd3f67351d1a15c099ef2464e81f47 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 13/25] MIPS: ralink: mt7620: add verbose ram info
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 --- a/arch/mips/ralink/mt7620.c
14 +++ b/arch/mips/ralink/mt7620.c
15 @@ -214,16 +214,19 @@ void prom_soc_init(struct ralink_soc_inf
16
17 switch (dram_type) {
18 case SYSCFG0_DRAM_TYPE_SDRAM:
19 + pr_info("Board has SDRAM\n");
20 soc_info->mem_size_min = MT7620_SDRAM_SIZE_MIN;
21 soc_info->mem_size_max = MT7620_SDRAM_SIZE_MAX;
22 break;
23
24 case SYSCFG0_DRAM_TYPE_DDR1:
25 + pr_info("Board has DDR1\n");
26 soc_info->mem_size_min = MT7620_DDR1_SIZE_MIN;
27 soc_info->mem_size_max = MT7620_DDR1_SIZE_MAX;
28 break;
29
30 case SYSCFG0_DRAM_TYPE_DDR2:
31 + pr_info("Board has DDR2\n");
32 soc_info->mem_size_min = MT7620_DDR2_SIZE_MIN;
33 soc_info->mem_size_max = MT7620_DDR2_SIZE_MAX;
34 break;