MIPS: Octeon: Add plat_get_fdt() function for Cavium platforms.
authorSteven J. Hill <Steven.Hill@cavium.com>
Tue, 22 Nov 2016 19:44:20 +0000 (13:44 -0600)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 3 Jan 2017 15:34:35 +0000 (16:34 +0100)
Add in the function needed for Octeon platforms to support KASLR.

Signed-off-by: Steven J. Hill <Steven.Hill@cavium.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/cavium-octeon/setup.c

index 4809ce4719d16fbf1654f68e1d973a5902b65342..d9dbeb0b165bcd4d6720eb2a82ca2f00af22ba2d 100644 (file)
@@ -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;