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:
1524766
)
s5pc1xx: aquila: set direction to input when hw rev check
author
Minkyu Kang
<mk7.kang@samsung.com>
Fri, 13 Nov 2009 01:03:42 +0000
(10:03 +0900)
committer
Minkyu Kang
<mk7.kang@samsung.com>
Fri, 13 Nov 2009 01:03:42 +0000
(10:03 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/universal/universal.c
patch
|
blob
|
history
diff --git
a/board/samsung/universal/universal.c
b/board/samsung/universal/universal.c
index
359d1f9
..
94491c1
100644
(file)
--- a/
board/samsung/universal/universal.c
+++ b/
board/samsung/universal/universal.c
@@
-270,6
+270,11
@@
static unsigned int get_hw_revision(struct s5pc1xx_gpio_bank *bank)
{
unsigned int rev;
+ gpio_direction_input(bank, 1);
+ gpio_direction_input(bank, 2);
+ gpio_direction_input(bank, 3);
+ gpio_direction_input(bank, 4);
+
gpio_set_pull(bank, 1, GPIO_PULL_NONE); /* HWREV_MODE3 */
gpio_set_pull(bank, 2, GPIO_PULL_NONE); /* HWREV_MODE0 */
gpio_set_pull(bank, 3, GPIO_PULL_NONE); /* HWREV_MODE1 */