From: Kyungmin Park Date: Tue, 5 Oct 2010 08:31:33 +0000 (+0900) Subject: s5pc210: universal: Fix hwrev check and set default hwrev as the latest X-Git-Tag: v0.2~385^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3d4b42f3cd6a6caa25406baa17da1f852eb5765c;p=kernel%2Fu-boot.git s5pc210: universal: Fix hwrev check and set default hwrev as the latest Signed-off-by: Kyungmin Park --- diff --git a/board/samsung/universal_c210/universal.c b/board/samsung/universal_c210/universal.c index 103ac49..e9f164a 100644 --- a/board/samsung/universal_c210/universal.c +++ b/board/samsung/universal_c210/universal.c @@ -860,7 +860,7 @@ static unsigned short get_adc_value(int channel) static unsigned int get_hw_revision(void) { - int hwrev = 0, mode0, mode1; + int hwrev, mode0, mode1; run_command("pmic ldo 4 on", 0); @@ -869,10 +869,15 @@ static unsigned int get_hw_revision(void) run_command("pmic ldo 4 off", 0); + /* + * XXX Always set the default hwrev as the latest board + */ + hwrev = 1; + #define IS_RANGE(x, min, max) ((x) > (min) && (x) < (max)) - if (IS_RANGE(mode0, 80, 100) && IS_RANGE(mode1, 80, 100)) + if (IS_RANGE(mode0, 80, 110) && IS_RANGE(mode1, 80, 110)) hwrev = 0x0; - if (IS_RANGE(mode0, 750, 870) && IS_RANGE(mode1, 80, 100)) + if (IS_RANGE(mode0, 750, 940) && IS_RANGE(mode1, 80, 110)) hwrev = 0x1; #undef IS_RANGE