summaryrefslogtreecommitdiffstats
path: root/arch/mips/Kconfig
diff options
context:
space:
mode:
authorDengcheng Zhu <dzhu@wavecomp.com>2018-09-11 17:49:24 -0400
committerPaul Burton <paul.burton@mips.com>2018-09-22 13:32:34 -0400
commit2fe8ea39c9a8489799cf86bb377fc80492b5b3bf (patch)
treea43f02b1275771b5cf99d1f1d784392e118bf069 /arch/mips/Kconfig
parenta6da4d6fdf8bd512c98d3ac7f1d16bc4bb282919 (diff)
MIPS: kexec: Use prepare method from Generic for UHI platforms
Out-of-tree platforms may not be based on Generic as shown in customer communication. Share the prepare method with all using UHI boot protocol, and put into machine_kexec.c. The benefit is that, when having kexec_args related problems, developers will naturally look into machine_kexec.c, where "CONFIG_UHI_BOOT" will be found, prompting them to add "select UHI_BOOT" to the platform Kconfig. It would otherwise require a lot debugging or online searching to be aware that the solution is in Generic code. Tested-by: Rachel Mozes <rachel.mozes@intel.com> Reported-by: Rachel Mozes <rachel.mozes@intel.com> Signed-off-by: Dengcheng Zhu <dzhu@wavecomp.com> Signed-off-by: Paul Burton <paul.burton@mips.com> Patchwork: https://patchwork.linux-mips.org/patch/20569/ Cc: pburton@wavecomp.com Cc: ralf@linux-mips.org Cc: linux-mips@linux-mips.org
Diffstat (limited to 'arch/mips/Kconfig')
-rw-r--r--arch/mips/Kconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index f744d25f7423..ce55c3c2d10d 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -133,6 +133,7 @@ config MIPS_GENERIC
133 select USB_UHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN 133 select USB_UHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
134 select USB_UHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN 134 select USB_UHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
135 select USE_OF 135 select USE_OF
136 select UHI_BOOT
136 help 137 help
137 Select this to build a kernel which aims to support multiple boards, 138 Select this to build a kernel which aims to support multiple boards,
138 generally using a flattened device tree passed from the bootloader 139 generally using a flattened device tree passed from the bootloader
@@ -2899,6 +2900,9 @@ config USE_OF
2899 select OF_EARLY_FLATTREE 2900 select OF_EARLY_FLATTREE
2900 select IRQ_DOMAIN 2901 select IRQ_DOMAIN
2901 2902
2903config UHI_BOOT
2904 bool
2905
2902config BUILTIN_DTB 2906config BUILTIN_DTB
2903 bool 2907 bool
2904 2908