diff options
author | Marcin Nowakowski <marcin.nowakowski@imgtec.com> | 2016-12-02 10:49:10 +0100 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2016-12-09 08:56:27 +0100 |
commit | 83a53ce9248fbcdf9dcac507b895d818db8c1706 (patch) | |
tree | ab0f0c93cf5c8e75df11345eeba0ab70ed38507e /kexec/arch/mips/kexec-mips.h | |
parent | 18bf48b15c289e88cb65cdc758749e2735eac291 (diff) |
mips: add dtb loading support
Kexec for MIPS currently does not support loading devicetrees, unless
they are embedded in the kernel elf file.
Add an option to either pass a new dtb file or - if not specified - to
be generated from existing device tree on the device. As new generic
platforms require a dtb to be passed separately this is required for
such platforms and will be ignored by the kernel otherwise.
Generic kexec infrastructure for dtb support is used.
Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/mips/kexec-mips.h')
-rw-r--r-- | kexec/arch/mips/kexec-mips.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kexec/arch/mips/kexec-mips.h b/kexec/arch/mips/kexec-mips.h index 2991b2d..a609fb5 100644 --- a/kexec/arch/mips/kexec-mips.h +++ b/kexec/arch/mips/kexec-mips.h @@ -1,6 +1,11 @@ #ifndef KEXEC_MIPS_H #define KEXEC_MIPS_H +#include <sys/types.h> + +#define BOOT_BLOCK_VERSION 17 +#define BOOT_BLOCK_LAST_COMP_VERSION 16 + #define MAX_MEMORY_RANGES 64 #define MAX_LINE 160 @@ -14,7 +19,11 @@ void elf_mips_usage(void); struct arch_options_t { char *command_line; + char *dtb_file; int core_header_type; }; +extern struct memory_ranges usablemem_rgns; +extern off_t initrd_base, initrd_size; + #endif /* KEXEC_MIPS_H */ |