diff mbox

[U-Boot,1/2] common: Kconfig: Add BOARD_LATE_INIT entry

Message ID 1484995713-3092-1-git-send-email-jagan@openedev.com
State Accepted
Commit de70fefb1b65debb645c0a42bd896de744837dac
Delegated to: Tom Rini
Headers show

Commit Message

Jagan Teki Jan. 21, 2017, 10:48 a.m. UTC
This patch add Kconfig entry for CONFIG_BOARD_LATE_INIT

Cc: Tom Rini <trini@konsulko.com>
Signed-off-by: Jagan Teki <jagan@openedev.com>
---
 common/Kconfig | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Tom Rini Jan. 21, 2017, 11:02 p.m. UTC | #1
On Sat, Jan 21, 2017 at 11:48:32AM +0100, Jagan Teki wrote:

> This patch add Kconfig entry for CONFIG_BOARD_LATE_INIT
> 
> Cc: Tom Rini <trini@konsulko.com>
> Signed-off-by: Jagan Teki <jagan@openedev.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/common/Kconfig b/common/Kconfig
index a04ee10..bb47ee4 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -373,6 +373,16 @@  config VERSION_VARIABLE
 	  Any change to this variable will be reverted at the
 	  next reset.
 
+config BOARD_LATE_INIT
+	bool "Enable Board late init code"
+	help
+	  Sometimes board require some initialization code that might
+	  require once the actual init done, example saving board specific env,
+	  boot-modes etc. which eventually done at late.
+
+	  So this config enable the late init code with the help of board_late_init
+	  function which should defined on respective boards.
+
 config DISPLAY_CPUINFO
 	bool "Display information about the CPU during start up"
 	default y if ARM || BLACKFIN || NIOS2 || X86 || XTENSA