From 8e56771fea1f98a07cb918ce9774e33c058b46b5 Mon Sep 17 00:00:00 2001 From: Przemyslaw Marczak Date: Wed, 30 Jul 2014 14:17:54 +0200 Subject: [PATCH] samsung:misc: add call to get_board_name() for CONFIG_OF_MULTI Change-Id: I236f5d23122f02ef759d7e79354a9af788627968 Signed-off-by: Przemyslaw Marczak --- board/samsung/common/misc.c | 3 +++ include/samsung/misc.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c index d7352b5270..ff8d352ae5 100644 --- a/board/samsung/common/misc.c +++ b/board/samsung/common/misc.c @@ -82,6 +82,9 @@ void set_board_info(void) #ifdef CONFIG_BOARD_TYPES bdtype = get_board_type(); +#ifdef CONFIG_OF_MULTI + bdname = get_board_name(); +#endif sprintf(info, "%s%s", bdname, bdtype); setenv("boardname", info); #endif diff --git a/include/samsung/misc.h b/include/samsung/misc.h index 48d149078a..ec1eff533b 100644 --- a/include/samsung/misc.h +++ b/include/samsung/misc.h @@ -67,6 +67,9 @@ void set_dfu_alt_info(void); #ifdef CONFIG_BOARD_TYPES void set_board_type(void); const char *get_board_type(void); +#ifdef CONFIG_OF_MULTI +const char *get_board_name(void); +#endif #endif #endif /* __SAMSUNG_MISC_COMMON_H__ */ -- 2.34.1