From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Shevchenko Date: Tue, 14 Feb 2017 17:47:13 +0300 Subject: [U-Boot] [PATCH v1 2/3] x86: zImage: add Intel MID platforms support In-Reply-To: <20170214144714.96516-1-andriy.shevchenko@linux.intel.com> References: <20170214144714.96516-1-andriy.shevchenko@linux.intel.com> Message-ID: <20170214144714.96516-2-andriy.shevchenko@linux.intel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Vincent Tinelli 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 Signed-off-by: Andy Shevchenko --- arch/x86/lib/zimage.c | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- 2.11.0