All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] MIPS: ralink: mt7620: add verbose ram info
@ 2013-08-08 11:17 John Crispin
  2013-08-08 11:17 ` [PATCH 2/5] MIPS: ralink: mt7620: add spi clock definition John Crispin
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: John Crispin @ 2013-08-08 11:17 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips, John Crispin

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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-08-14 16:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-08 11:17 [PATCH 1/5] MIPS: ralink: mt7620: add verbose ram info John Crispin
2013-08-08 11:17 ` [PATCH 2/5] MIPS: ralink: mt7620: add spi clock definition John Crispin
2013-08-14 16:34   ` Gabor Juhos
2013-08-08 11:17 ` [PATCH 3/5] MIPS: ralink: mt7620: add wdt " John Crispin
2013-08-08 11:17 ` [PATCH 4/5] MIPS: ralink: mt7620: fix usb issue during frequency scaling John Crispin
2013-08-08 11:17 ` [PATCH 5/5] MIPS: ralink: mt7620: this SoC has ehci and ohci hosts John Crispin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.