2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved.
8 #include <linux/init.h>
9 #include <linux/of_platform.h>
10 #include <linux/of_fdt.h>
11 #include <linux/bootmem.h>
13 #include <asm/mips-boards/generic.h>
16 int coherentio
; /* 0 => no DMA cache coherency (may be set by user) */
17 int hw_coherentio
; /* 0 => no HW DMA cache coherency (reflects real HW) */
19 const char *get_system_type(void)
24 void __init
plat_mem_setup(void)
27 * Load the builtin devicetree. This causes the chosen node to be
28 * parsed resulting in our memory appearing
30 __dt_setup_arch(&__dtb_start
);
33 void __init
device_tree_init(void)
35 unsigned long base
, size
;
37 if (!initial_boot_params
)
40 base
= virt_to_phys((void *)initial_boot_params
);
41 size
= be32_to_cpu(initial_boot_params
->totalsize
);
43 /* Before we do anything, lets reserve the dt blob */
44 reserve_bootmem(base
, size
, BOOTMEM_DEFAULT
);
46 unflatten_device_tree();