Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] MIPS: ralink: add missing SZ_1M multiplier
@ 2013-06-06 13:55 John Crispin
  2013-06-06 14:27 ` Florian Fainelli
  0 siblings, 1 reply; 3+ messages in thread
From: John Crispin @ 2013-06-06 13:55 UTC (permalink / raw)
  To: ralf; +Cc: linux-mips, John Crispin

On RT5350 the memory size is set to Bytes and not MegaBytes due to a missing
multiplier.

Signed-off-by: John Crispin <blogic@openwrt.org>
---
 arch/mips/ralink/of.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/ralink/of.c b/arch/mips/ralink/of.c
index f916774..b25c1f2 100644
--- a/arch/mips/ralink/of.c
+++ b/arch/mips/ralink/of.c
@@ -88,7 +88,7 @@ void __init plat_mem_setup(void)
 	__dt_setup_arch(&__dtb_start);
 
 	if (soc_info.mem_size)
-		add_memory_region(soc_info.mem_base, soc_info.mem_size,
+		add_memory_region(soc_info.mem_base, soc_info.mem_size * SZ_1M,
 				  BOOT_MEM_RAM);
 	else
 		detect_memory_region(soc_info.mem_base,
-- 
1.7.10.4

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

end of thread, other threads:[~2013-06-06 16:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-06 13:55 [PATCH] MIPS: ralink: add missing SZ_1M multiplier John Crispin
2013-06-06 14:27 ` Florian Fainelli
2013-06-06 16:07   ` John Crispin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox