projects
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fccee7d
)
s5pc210: slp7: set pull_none at hw_rev gpios
author
Minkyu Kang
<mk7.kang@samsung.com>
Wed, 19 Jan 2011 11:27:41 +0000
(20:27 +0900)
committer
Minkyu 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
patch
|
blob
|
history
diff --git
a/board/samsung/slp7_c210/slp7.c
b/board/samsung/slp7_c210/slp7.c
index
fbc3567
..
a9799ef
100644
(file)
--- a/
board/samsung/slp7_c210/slp7.c
+++ b/
board/samsung/slp7_c210/slp7.c
@@
-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",
};