From: Przemyslaw Marczak
Date: Thu, 13 Nov 2014 10:40:02 +0000 (+0100)
Subject: samsung: misc_init_r: insert call to platform_setup()
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa456a98ed95e347bf434a26cc27d3257d71ae17;p=platform%2Fkernel%2Fu-boot.git
samsung: misc_init_r: insert call to platform_setup()
This change adds call of platform_setup() to check or set active
platform configuration.
Another change is setup environment variable: ${platname},
from board name in set_board_info().
Change-Id: I355736bf40f8fa3697ce0b4546f7702d2e54a0f9
Signed-off-by: Przemyslaw Marczak
---
diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c
index 3fb078f6ed..6c81bfc6c1 100644
--- a/board/samsung/common/board.c
+++ b/board/samsung/common/board.c
@@ -373,6 +373,9 @@ int misc_init_r(void)
#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
set_board_info();
#endif
+#ifdef CONFIG_PLATFORM_SETUP
+ platform_setup();
+#endif
#ifdef CONFIG_OF_MULTI
if (!board_is_trats2())
return 0;
diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c
index 169c31785e..b98414a753 100644
--- a/board/samsung/common/misc.c
+++ b/board/samsung/common/misc.c
@@ -279,6 +279,9 @@ void set_board_info(void)
#ifdef CONFIG_OF_MULTI
bdname = get_board_name();
+#ifdef CONFIG_PLATFORM_SETUP
+ setenv("platname", bdname);
+#endif
#endif
sprintf(info, "%s%s", bdname, bdtype);
setenv("boardname", info);