Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 375164
b: refs/heads/master
c: dd63b00
h: refs/heads/master
v: v3
  • Loading branch information
John Crispin authored and Ralf Baechle committed May 7, 2013
1 parent 8ddb510 commit 541c121
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 51e396078412ef91f222b9834f09308746ac7049
refs/heads/master: dd63b00804a5c842fb73b6afc52f928f0c209a07
9 changes: 9 additions & 0 deletions trunk/arch/mips/ralink/of.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <linux/io.h>
#include <linux/clk.h>
#include <linux/init.h>
#include <linux/sizes.h>
#include <linux/of_fdt.h>
#include <linux/kernel.h>
#include <linux/bootmem.h>
Expand Down Expand Up @@ -85,6 +86,14 @@ void __init plat_mem_setup(void)
* parsed resulting in our memory appearing
*/
__dt_setup_arch(&__dtb_start);

if (soc_info.mem_size)
add_memory_region(soc_info.mem_base, soc_info.mem_size,
BOOT_MEM_RAM);
else
detect_memory_region(soc_info.mem_base,
soc_info.mem_size_min * SZ_1M,
soc_info.mem_size_max * SZ_1M);
}

static int __init plat_of_setup(void)
Expand Down

0 comments on commit 541c121

Please sign in to comment.