diff options
author | Przemyslaw Marczak <p.marczak@samsung.com> | 2014-09-01 13:50:42 +0200 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2014-09-05 13:58:49 +0900 |
commit | 0dc579f36c912188c42122574911cf4e64fc357c (patch) | |
tree | a6bceded96455518ef78d5c5e8b6b85b470b79e2 /board/samsung/common | |
parent | d6c1ffc7d23f4fe4ae8c91101861055b8e1501b6 (diff) |
samsung: misc: fix soc revision setting in the set_board_info()
The byte order of soc revision was inverted, now it is fixed.
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>
Diffstat (limited to 'board/samsung/common')
-rw-r--r-- | board/samsung/common/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c index 03106fdb9f..a453a82f40 100644 --- a/board/samsung/common/misc.c +++ b/board/samsung/common/misc.c @@ -26,8 +26,8 @@ void set_board_info(void) { char info[64]; - snprintf(info, ARRAY_SIZE(info), "%d.%d", s5p_cpu_rev & 0x0f, - (s5p_cpu_rev & 0xf0) >> 0x04); + snprintf(info, ARRAY_SIZE(info), "%u.%u", (s5p_cpu_rev & 0xf0) >> 4, + s5p_cpu_rev & 0xf); setenv("soc_rev", info); snprintf(info, ARRAY_SIZE(info), "%x", s5p_cpu_id); |