projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
715e20e
)
MIPS: Octeon: Add plat_get_fdt() function for Cavium platforms.
author
Steven J. Hill
<Steven.Hill@cavium.com>
Tue, 22 Nov 2016 19:44:20 +0000
(13:44 -0600)
committer
Ralf 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
patch
|
blob
|
history
diff --git
a/arch/mips/cavium-octeon/setup.c
b/arch/mips/cavium-octeon/setup.c
index 4809ce4719d16fbf1654f68e1d973a5902b65342..d9dbeb0b165bcd4d6720eb2a82ca2f00af22ba2d 100644
(file)
--- 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;