pcbid: revise representation of hardware revision with index-based

Text-based representation hardly follows up rapid changes of
hardware schematics among multiple projects. Different hardware stage
and naming was given even if the same pcbid value is defined.

Translate the text-based representation (eg, SR, ER, and etc) into
index-based one to avoid development confusion.

Change-Id: I11cf63b84b9597fb100cc0c9730b36c8f386b4e4
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/69010
Reviewed-by: Sam hblee <Sam_hblee@asus.com>
Signed-off-by: paris_yeh <paris_yeh@asus.com>
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/69665
This commit is contained in:
paris_yeh
2013-02-19 16:49:19 +08:00
committed by Iliyan Malchev
parent 6a49a1dfd6
commit 051ef9fc41
2 changed files with 5 additions and 5 deletions

View File

@@ -122,7 +122,7 @@ static hw_rev asustek_hw_rev = HW_REV_INVALID;
static int __init hw_rev_setup(char *hw_rev_info)
{
/* CAUTION: These strings comes from bootloader. */
char *hw_rev_str[] = {"SR1", "ER", "PR", "MP"};
char *hw_rev_str[] = {"rev_a", "rev_b", "rev_c", "rev_d"};
unsigned int i;
if (debug_mask & DEBUG_STATE)

View File

@@ -48,10 +48,10 @@ typedef enum {
typedef enum {
HW_REV_INVALID = -1,
HW_REV_SR1 = 0,
HW_REV_ER = 1,
HW_REV_PR = 2,
HW_REV_MP = 3,
HW_REV_A = 0,
HW_REV_B = 1,
HW_REV_C = 2,
HW_REV_D = 3,
HW_REV_MAX
} hw_rev;