s5pc210: slp7: set pull_none at hw_rev gpios
authorMinkyu Kang <mk7.kang@samsung.com>
Wed, 19 Jan 2011 11:27:41 +0000 (20:27 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 19 Jan 2011 11:27:41 +0000 (20:27 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/slp7_c210/slp7.c

index fbc3567..a9799ef 100644 (file)
@@ -867,13 +867,20 @@ static unsigned int get_hw_revision(void)
        /* HW_REV[0:3]: GPE1[0:3] */
        for (i = 0; i < 4; i++) {
                gpio_direction_input(&gpio1->e1, i);
-               hwrev |= (gpio_get_value(&gpio1->e1, i) << i);
+               gpio_set_pull(&gpio1->e1, i, GPIO_PULL_NONE);
        }
 
+       for (i = 0; i < 4; i++)
+               hwrev |= (gpio_get_value(&gpio1->e1, i) << i);
+
        return hwrev;
 }
 
 static const char * const pcb_rev[] = {
+       "reserved",
+       "reserved",
+       "reserved",
+       "reserved",
        "SLP_MAIN_7INCH",
 };