samsung: common: add get_plat_name()/get_board_model()
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Wed, 12 Nov 2014 13:49:35 +0000 (14:49 +0100)
committerPrzemyslaw Marczak <p.marczak@samsung.com>
Mon, 18 May 2015 09:54:53 +0000 (11:54 +0200)
commitea8f22556f661ce476e4afd3e0d5758bda65ef06
treebe901ae4e020a4c07092827d7119a7866826aa20
parent728c19777997dd0a8b83448c2bfae881b57d4b84
samsung: common: add get_plat_name()/get_board_model()

This patch introduce some cleanup in set_board_info(),
related to the listed code changes:
Change 1:
The name of function get_board_type() was unclear,
so now it is changed to get_board_model().

Change 2:
The previous version of get_board_name() was returning
the platform name - now it returns full boardname.

Change 3:
Add new function get_plat_name() - returns platform name.
This is useful for platform common usage like environment
settings.

Change 4:
Update odroid.c by change get_board_type() to get_board_model().

Change 5:
samsung: misc: set env ${platname} in set_board_info()

Change-Id: Iba16e917f9c88458e1af21892d84ded121aa12cf
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
board/samsung/common/board.c
board/samsung/common/misc.c
board/samsung/odroid/odroid.c
include/samsung/misc.h