Skip to content

Commit

Permalink
MIPS: Octeon: Add plat_get_fdt() function for Cavium platforms.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven J. Hill authored and Ralf Baechle committed Jan 3, 2017
1 parent 715e20e commit 126c111
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/mips/cavium-octeon/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 126c111

Please sign in to comment.