Message ID | 20170214144714.96516-2-andriy.shevchenko@linux.intel.com |
---|---|
State | Accepted |
Commit | 20bfac0599bd7eaad901287fe4a343f9fd6cf6ef |
Delegated to: | Bin Meng |
Headers | show |
On Tue, Feb 14, 2017 at 10:47 PM, Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote: > From: Vincent Tinelli <vincent.tinelli@intel.com> > > Intel MID platform boards have special treatment, such as boot parameter > setting. > > Assign hardware_subarch accordingly if CONFIG_INTEL_MID is set. > > Signed-off-by: Vincent Tinelli <vincent.tinelli@intel.com> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > --- > arch/x86/lib/zimage.c | 4 ++++ > 1 file changed, 4 insertions(+) > Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
On 14 February 2017 at 20:08, Bin Meng <bmeng.cn@gmail.com> wrote: > On Tue, Feb 14, 2017 at 10:47 PM, Andy Shevchenko > <andriy.shevchenko@linux.intel.com> wrote: >> From: Vincent Tinelli <vincent.tinelli@intel.com> >> >> Intel MID platform boards have special treatment, such as boot parameter >> setting. >> >> Assign hardware_subarch accordingly if CONFIG_INTEL_MID is set. >> >> Signed-off-by: Vincent Tinelli <vincent.tinelli@intel.com> >> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> >> --- >> arch/x86/lib/zimage.c | 4 ++++ >> 1 file changed, 4 insertions(+) >> > > Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
diff --git a/arch/x86/lib/zimage.c b/arch/x86/lib/zimage.c index b6b0f2beb3..aafbeb01f9 100644 --- a/arch/x86/lib/zimage.c +++ b/arch/x86/lib/zimage.c @@ -246,6 +246,10 @@ int setup_zimage(struct boot_params *setup_base, char *cmd_line, int auto_boot, hdr->setup_move_size = 0x9100; } +#if defined(CONFIG_INTEL_MID) + hdr->hardware_subarch = X86_SUBARCH_INTEL_MID; +#endif + /* build command line at COMMAND_LINE_OFFSET */ build_command_line(cmd_line, auto_boot); }