All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v1] x86: make LOAD_FROM_32_BIT visible for platforms
@ 2017-01-21 20:07 Andy Shevchenko
  2017-01-22 17:28 ` Andy Shevchenko
  2017-01-23  8:36 ` Bin Meng
  0 siblings, 2 replies; 3+ messages in thread
From: Andy Shevchenko @ 2017-01-21 20:07 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH v1] x86: make LOAD_FROM_32_BIT visible for platforms
  2017-01-21 20:07 [U-Boot] [PATCH v1] x86: make LOAD_FROM_32_BIT visible for platforms Andy Shevchenko
@ 2017-01-22 17:28 ` Andy Shevchenko
  2017-01-23  8:36 ` Bin Meng
  1 sibling, 0 replies; 3+ messages in thread
From: Andy Shevchenko @ 2017-01-22 17:28 UTC (permalink / raw)
  To: u-boot

On Sat, Jan 21, 2017 at 10:07 PM, Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
> 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.

> --- 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

Oops, given one more thought, it should be a bit more verbose

I will fix this later. Any other comments I need to address?

-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH v1] x86: make LOAD_FROM_32_BIT visible for platforms
  2017-01-21 20:07 [U-Boot] [PATCH v1] x86: make LOAD_FROM_32_BIT visible for platforms Andy Shevchenko
  2017-01-22 17:28 ` Andy Shevchenko
@ 2017-01-23  8:36 ` Bin Meng
  1 sibling, 0 replies; 3+ messages in thread
From: Bin Meng @ 2017-01-23  8:36 UTC (permalink / raw)
  To: u-boot

Hi Andy,

On Sun, Jan 22, 2017 at 4:07 AM, Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
> 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

Can we add some help text (ie: the comment block below for the
LOAD_FROM_32_BIT in start.S)  to this option so that it is visible in
"make menuconfig"?

> +       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

Instead of #defining LOAD_FROM_32_BIT, can we directly use
CONFIG_X86_LOAD_FROM_32_BIT in this file?

Regards,
Bin

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-01-23  8:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-21 20:07 [U-Boot] [PATCH v1] x86: make LOAD_FROM_32_BIT visible for platforms Andy Shevchenko
2017-01-22 17:28 ` Andy Shevchenko
2017-01-23  8:36 ` Bin Meng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.