1 From 1996ffa03b1c6e0ab7db35dfd910923f4ab54b26 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Tue, 21 May 2013 17:15:54 +0200
4 Subject: [PATCH 51/79] MIPS: ralink: add missing SZ_1M multiplier
6 On RT5350 the memory size is set to Bytes and not MegaBytes due to a missing
9 Signed-off-by: John Crispin <blogic@openwrt.org>
11 arch/mips/ralink/of.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
14 diff --git a/arch/mips/ralink/of.c b/arch/mips/ralink/of.c
15 index f916774..b25c1f2 100644
16 --- a/arch/mips/ralink/of.c
17 +++ b/arch/mips/ralink/of.c
18 @@ -88,7 +88,7 @@ void __init plat_mem_setup(void)
19 __dt_setup_arch(&__dtb_start);
21 if (soc_info.mem_size)
22 - add_memory_region(soc_info.mem_base, soc_info.mem_size,
23 + add_memory_region(soc_info.mem_base, soc_info.mem_size * SZ_1M,
26 detect_memory_region(soc_info.mem_base,