From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: u-boot@lists.denx.de
Subject: [PATCH v2 01/15] x86: Introduce USE_EARLY_BOARD_INIT option
Date: Thu, 20 Aug 2020 13:02:20 +0300 [thread overview]
Message-ID: <20200820100234.70576-1-andriy.shevchenko@linux.intel.com> (raw)
Introduce USE_EARLY_BOARD_INIT option and select it by the actual users.
Cc: George McCollister <george.mccollister@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Stefan Roese <sr@denx.de> Reviewed-by: Aiden Park <aiden.park@intel.com>
---
v2: added Rb tag(s), appended CONFIG prefix when use the option in the code
arch/x86/Kconfig | 3 +++
arch/x86/cpu/start.S | 3 +++
board/google/chromebook_coral/Kconfig | 1 +
board/google/chromebook_link/Kconfig | 1 +
board/google/chromebook_samus/Kconfig | 1 +
5 files changed, 9 insertions(+)
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index a34b108fffa6..76276c602745 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -203,6 +203,9 @@ config SPL_X86_32BIT_INIT
help
This is enabled when 32-bit init is in SPL
+config USE_EARLY_BOARD_INIT
+ bool
+
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 4ad515ce0856..3b6ed37bc07e 100644
--- a/arch/x86/cpu/start.S
+++ b/arch/x86/cpu/start.S
@@ -88,6 +88,7 @@ _start:
/* Clear the interrupt vectors */
lidt blank_idt_ptr
+#ifdef CONFIG_USE_EARLY_BOARD_INIT
/*
* Critical early platform init - generally not used, we prefer init
* to happen later when we have a console, in case something goes
@@ -96,6 +97,8 @@ _start:
jmp early_board_init
.globl early_board_init_ret
early_board_init_ret:
+#endif
+
post_code(POST_START)
/* Initialise Cache-As-RAM */
diff --git a/board/google/chromebook_coral/Kconfig b/board/google/chromebook_coral/Kconfig
index 940bee89b0b6..27671958e146 100644
--- a/board/google/chromebook_coral/Kconfig
+++ b/board/google/chromebook_coral/Kconfig
@@ -18,6 +18,7 @@ config SYS_TEXT_BASE
config BOARD_SPECIFIC_OPTIONS # dummy
def_bool y
select X86_RESET_VECTOR
+ select USE_EARLY_BOARD_INIT
select INTEL_APOLLOLAKE
select BOARD_ROMSIZE_KB_16384
diff --git a/board/google/chromebook_link/Kconfig b/board/google/chromebook_link/Kconfig
index 944716d002c9..dd29ddf694be 100644
--- a/board/google/chromebook_link/Kconfig
+++ b/board/google/chromebook_link/Kconfig
@@ -19,6 +19,7 @@ config SYS_TEXT_BASE
config BOARD_SPECIFIC_OPTIONS # dummy
def_bool y
select X86_RESET_VECTOR
+ select USE_EARLY_BOARD_INIT
select NORTHBRIDGE_INTEL_IVYBRIDGE
select HAVE_INTEL_ME
select BOARD_ROMSIZE_KB_8192
diff --git a/board/google/chromebook_samus/Kconfig b/board/google/chromebook_samus/Kconfig
index 90c23cba1bed..9f66d7998870 100644
--- a/board/google/chromebook_samus/Kconfig
+++ b/board/google/chromebook_samus/Kconfig
@@ -19,6 +19,7 @@ config SYS_TEXT_BASE
config BOARD_SPECIFIC_OPTIONS # dummy
def_bool y
select X86_RESET_VECTOR
+ select USE_EARLY_BOARD_INIT
select INTEL_BROADWELL
select HAVE_INTEL_ME
select BOARD_ROMSIZE_KB_8192
--
2.28.0
next reply other threads:[~2020-08-20 10:02 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-20 10:02 Andy Shevchenko [this message]
2020-08-20 10:02 ` [PATCH v2 02/15] x86: advantech: som-db5800-som-6867: Remove dead code Andy Shevchenko
2020-09-01 5:33 ` Bin Meng
2020-08-20 10:02 ` [PATCH v2 03/15] x86: congatec: conga-qeval20-qa3-e3845: " Andy Shevchenko
2020-09-01 5:33 ` Bin Meng
2020-08-20 10:02 ` [PATCH v2 04/15] x86: coreboot: " Andy Shevchenko
2020-09-01 5:33 ` Bin Meng
2020-08-20 10:02 ` [PATCH v2 05/15] x86: dfi: dfi-bt700: " Andy Shevchenko
2020-09-01 5:33 ` Bin Meng
2020-08-20 10:02 ` [PATCH v2 06/15] x86: efi: efi-x86_payload: " Andy Shevchenko
2020-09-01 5:34 ` Bin Meng
2020-08-20 10:02 ` [PATCH v2 07/15] x86: intel: bayleybay: " Andy Shevchenko
2020-09-01 5:34 ` Bin Meng
2020-08-20 10:02 ` [PATCH v2 08/15] x86: intel: cherryhill: " Andy Shevchenko
2020-09-01 5:34 ` Bin Meng
2020-08-20 10:02 ` [PATCH v2 09/15] x86: intel: cougarcanyon2: " Andy Shevchenko
2020-09-01 5:34 ` Bin Meng
2020-08-20 10:02 ` [PATCH v2 10/15] x86: intel: crownbay: " Andy Shevchenko
2020-09-01 5:34 ` Bin Meng
2020-08-20 10:02 ` [PATCH v2 11/15] x86: intel: edison: " Andy Shevchenko
2020-09-01 5:34 ` Bin Meng
2020-08-20 10:02 ` [PATCH v2 12/15] x86: intel: galileo: " Andy Shevchenko
2020-09-01 5:34 ` Bin Meng
2020-08-20 10:02 ` [PATCH v2 13/15] x86: intel: minnowmax: " Andy Shevchenko
2020-09-01 5:34 ` Bin Meng
2020-08-20 10:02 ` [PATCH v2 14/15] x86: intel: slimbootloader: " Andy Shevchenko
2020-09-01 5:34 ` Bin Meng
2020-08-20 10:02 ` [PATCH v2 15/15] x86: qemu: " Andy Shevchenko
2020-09-01 5:34 ` Bin Meng
2020-09-01 6:15 ` Bin Meng
2020-09-01 7:05 ` Andy Shevchenko
2020-09-01 8:34 ` Andy Shevchenko
2020-09-01 5:33 ` [PATCH v2 01/15] x86: Introduce USE_EARLY_BOARD_INIT option Bin Meng
2020-09-01 5:38 ` 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=20200820100234.70576-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