s5pc210: universal: Incrase the ADC range to detect the HWREV
authorKyungmin Park <kyungmin.park@samsung.com>
Mon, 11 Oct 2010 07:42:34 +0000 (16:42 +0900)
committerKyungmin Park <kyungmin.park@samsung.com>
Mon, 11 Oct 2010 07:42:34 +0000 (16:42 +0900)
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
board/samsung/universal_c210/universal.c

index b04699f..aa49680 100644 (file)
@@ -875,9 +875,9 @@ static unsigned int get_hw_revision(void)
        hwrev = 1;
 
 #define IS_RANGE(x, min, max)  ((x) > (min) && (x) < (max))
-       if (IS_RANGE(mode0, 80, 110) && IS_RANGE(mode1, 80, 110))
+       if (IS_RANGE(mode0, 80, 200) && IS_RANGE(mode1, 80, 200))
                hwrev = 0x0;
-       if (IS_RANGE(mode0, 750, 940) && IS_RANGE(mode1, 80, 110))
+       if (IS_RANGE(mode0, 750, 1000) && IS_RANGE(mode1, 80, 200))
                hwrev = 0x1;
 #undef IS_RANGE