public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1] x86: make LOAD_FROM_32_BIT visible for platforms
Date: Sat, 21 Jan 2017 23:07:08 +0300	[thread overview]
Message-ID: <20170121200708.81625-1-andriy.shevchenko@linux.intel.com> (raw)

This option useful not only for development, but for the platforms where
U-Boot is run from custom ROM bootloader. For example, Intel Edison is
that board.

Make this option visible that platforms can select it if needed.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 arch/x86/Kconfig     | 4 ++++
 arch/x86/cpu/start.S | 3 +--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 0884af22a7..d75ad61d99 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -89,6 +89,10 @@ config X86_RESET_VECTOR
 	bool
 	default n
 
+config X86_LOAD_FROM_32_BIT
+	bool
+	default n
+
 config RESET_SEG_START
 	hex
 	depends on X86_RESET_VECTOR
diff --git a/arch/x86/cpu/start.S b/arch/x86/cpu/start.S
index a5cba1cf2a..eb4ade6f8c 100644
--- a/arch/x86/cpu/start.S
+++ b/arch/x86/cpu/start.S
@@ -22,9 +22,8 @@
  * Define this to boot U-Boot from a 32-bit program which sets the GDT
  * differently. This can be used to boot directly from any stage of coreboot,
  * for example, bypassing the normal payload-loading feature.
- * This is only useful for development.
  */
-#undef LOAD_FROM_32_BIT
+#define LOAD_FROM_32_BIT CONFIG_X86_LOAD_FROM_32_BIT
 
 .section .text
 .code32
-- 
2.11.0

             reply	other threads:[~2017-01-21 20:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-21 20:07 Andy Shevchenko [this message]
2017-01-22 17:28 ` [U-Boot] [PATCH v1] x86: make LOAD_FROM_32_BIT visible for platforms Andy Shevchenko
2017-01-23  8:36 ` Bin Meng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170121200708.81625-1-andriy.shevchenko@linux.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox