From f968da53f677a386007fe34204fd4c05e87bb93e 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 2853c02..f8534c5 100644
--- a/board/samsung/common/misc.c
+++ b/board/samsung/common/misc.c
@@ -88,6 +88,9 @@ void set_board_info(void)
if (!bdtype)
bdtype = "";
+#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 4799b67..693cb7c 100644
--- a/include/samsung/misc.h
+++ b/include/samsung/misc.h
@@ -66,6 +66,9 @@ char *get_dfu_alt_boot(char *interface, char *devstr);
#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.7.4