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:
318d065
)
s5pc1xx: aquila: work around for rev 0.4 (rev 0.3 + CP ES3.1)
author
Minkyu Kang
<mk7.kang@samsung.com>
Fri, 13 Nov 2009 03:09:40 +0000
(12:09 +0900)
committer
Minkyu Kang
<mk7.kang@samsung.com>
Fri, 13 Nov 2009 03:09:40 +0000
(12:09 +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
94491c1
..
d8582eb
100644
(file)
--- a/
board/samsung/universal/universal.c
+++ b/
board/samsung/universal/universal.c
@@
-289,8
+289,14
@@
static unsigned int get_hw_revision(struct s5pc1xx_gpio_bank *bank)
* Workaround for Rev 0.3 + CP Ver ES 3.1
* it's Rev 0.4
*/
- if (rev == 0)
- rev = 0x4;
+ if (rev == 0) {
+ udelay(2000);
+
+ if (gpio_get_value(bank, 2) &&
+ gpio_get_value(bank, 3) &&
+ gpio_get_value(bank, 4))
+ rev = 0x4;
+ }
return rev;
}