From: Steven J. Hill Date: Tue, 22 Nov 2016 19:44:20 +0000 (-0600) Subject: MIPS: Octeon: Add plat_get_fdt() function for Cavium platforms. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=126c1113bf3e6facdd5562064043b9e8fa8c9bf1;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git MIPS: Octeon: Add plat_get_fdt() function for Cavium platforms. Add in the function needed for Octeon platforms to support KASLR. Signed-off-by: Steven J. Hill Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/cavium-octeon/setup.c b/arch/mips/cavium-octeon/setup.c index 4809ce4719d1..d9dbeb0b165b 100644 --- a/arch/mips/cavium-octeon/setup.c +++ b/arch/mips/cavium-octeon/setup.c @@ -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;