Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321186
b: refs/heads/master
c: a9188bc
h: refs/heads/master
v: v3
  • Loading branch information
John Crispin authored and Ralf Baechle committed Aug 1, 2012
1 parent 8440c3e commit 306ab6c
Show file tree
Hide file tree
Showing 2 changed files with 23 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: e29b72f5e129b4dd4b77dc01dba340006bb103f8
refs/heads/master: a9188bc1628366bea7157209df93acc0f74625cc
22 changes: 22 additions & 0 deletions trunk/arch/mips/lantiq/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@

#include <linux/export.h>
#include <linux/clk.h>
#include <linux/bootmem.h>
#include <linux/of_platform.h>
#include <linux/of_fdt.h>

#include <asm/bootinfo.h>
#include <asm/time.h>

Expand Down Expand Up @@ -70,6 +73,25 @@ void __init plat_mem_setup(void)
__dt_setup_arch(&__dtb_start);
}

void __init device_tree_init(void)
{
unsigned long base, size;

if (!initial_boot_params)
return;

base = virt_to_phys((void *)initial_boot_params);
size = be32_to_cpu(initial_boot_params->totalsize);

/* Before we do anything, lets reserve the dt blob */
reserve_bootmem(base, size, BOOTMEM_DEFAULT);

unflatten_device_tree();

/* free the space reserved for the dt blob */
free_bootmem(base, size);
}

void __init prom_init(void)
{
/* call the soc specific detetcion code and get it to fill soc_info */
Expand Down

0 comments on commit 306ab6c

Please sign in to comment.