提交 126c1113 编写于 作者: S Steven J. Hill 提交者: Ralf Baechle

MIPS: Octeon: Add plat_get_fdt() function for Cavium platforms.

Add in the function needed for Octeon platforms to support KASLR.
Signed-off-by: NSteven J. Hill <Steven.Hill@cavium.com>
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 715e20eb
......@@ -965,6 +965,13 @@ void __init fw_init_cmdline(void)
}
}
void __init *plat_get_fdt(void)
{
octeon_bootinfo =
cvmx_phys_to_ptr(octeon_boot_desc_ptr->cvmx_desc_vaddr);
return phys_to_virt(octeon_bootinfo->fdt_addr);
}
void __init plat_mem_setup(void)
{
uint64_t mem_alloc_size;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册