mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-10-19 03:21:22 +02:00
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 CONFIG_BOARD_TYPES. This is useful in case of running many boards with just one config. Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Cc: Minkyu Kang <mk7.kang@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
This commit is contained in:
parent
d50c41efcd
commit
c9c36bf56e
@ -79,8 +79,16 @@ void set_board_info(void)
|
|||||||
setenv("board_rev", info);
|
setenv("board_rev", info);
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_OF_LIBFDT
|
#ifdef CONFIG_OF_LIBFDT
|
||||||
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;
|
||||||
|
|
||||||
|
#ifdef CONFIG_BOARD_TYPES
|
||||||
|
bdtype = get_board_type();
|
||||||
|
sprintf(info, "%s%s", bdname, bdtype);
|
||||||
|
setenv("boardname", info);
|
||||||
|
#endif
|
||||||
|
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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user