1 From 4a8fcf59741a8b71f97823c31d461fa6d9089cb0 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 135/164] 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 --- a/arch/mips/ralink/of.c
15 +++ b/arch/mips/ralink/of.c
16 @@ -88,7 +88,7 @@ void __init plat_mem_setup(void)
17 __dt_setup_arch(&__dtb_start);
19 if (soc_info.mem_size)
20 - add_memory_region(soc_info.mem_base, soc_info.mem_size,
21 + add_memory_region(soc_info.mem_base, soc_info.mem_size * SZ_1M,
24 detect_memory_region(soc_info.mem_base,