Commit c9c36bf5 authored by Przemyslaw Marczak's avatar Przemyslaw Marczak Committed by Minkyu Kang

samsung: misc: use board specific functions to set env board info

This change adds setup of environmental board info using
get_board_name() and get_board_type() functions for config

This is useful in case of running many boards with just one config.
Signed-off-by: default avatarPrzemyslaw Marczak <>
Cc: Minkyu Kang <>
Signed-off-by: default avatarMinkyu Kang <>
parent d50c41ef
...@@ -79,8 +79,16 @@ void set_board_info(void) ...@@ -79,8 +79,16 @@ void set_board_info(void)
setenv("board_rev", info); setenv("board_rev", info);
#endif #endif
snprintf(info, ARRAY_SIZE(info), "%s%x-%s.dtb", const char *bdtype = "";
CONFIG_SYS_SOC, s5p_cpu_id, CONFIG_SYS_BOARD); const char *bdname = CONFIG_SYS_BOARD;
bdtype = get_board_type();
sprintf(info, "%s%s", bdname, bdtype);
setenv("boardname", info);
snprintf(info, ARRAY_SIZE(info), "%s%x-%s%s.dtb",
CONFIG_SYS_SOC, s5p_cpu_id, bdname, bdtype);
setenv("fdtfile", info); setenv("fdtfile", info);
#endif #endif
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment