Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 126c1113 authored by Steven J. Hill's avatar Steven J. Hill Committed by Ralf Baechle
Browse files

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



Add in the function needed for Octeon platforms to support KASLR.

Signed-off-by: default avatarSteven J. Hill <Steven.Hill@cavium.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 715e20eb
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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;