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 <p.marczak@samsung.com>
#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;
#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);