summaryrefslogtreecommitdiff
path: root/arch/mips/cavium-octeon
diff options
context:
space:
mode:
authorSteven J. Hill <Steven.Hill@cavium.com>2016-11-22 22:44:20 +0300
committerRalf Baechle <ralf@linux-mips.org>2017-01-03 18:34:35 +0300
commit126c1113bf3e6facdd5562064043b9e8fa8c9bf1 (patch)
tree7b35da15b010388dd075e4da76b64147368f2237 /arch/mips/cavium-octeon
parent715e20eb41cc8b48f92d959da2faaac61d110349 (diff)
downloadlinux-126c1113bf3e6facdd5562064043b9e8fa8c9bf1.tar.xz
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 <Steven.Hill@cavium.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/cavium-octeon')
-rw-r--r--arch/mips/cavium-octeon/setup.c7
1 files changed, 7 insertions, 0 deletions
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;