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:
ac1ddce
)
5pc1xx: aquila: workaround: fix revision check (default is Rev0.4)
author
Minkyu Kang
<mk7.kang@samsung.com>
Fri, 20 Nov 2009 06:17:06 +0000
(15:17 +0900)
committer
Minkyu Kang
<mk7.kang@samsung.com>
Fri, 20 Nov 2009 06:17:06 +0000
(15:17 +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
aa35740
..
d253d36
100644
(file)
--- a/
board/samsung/universal/universal.c
+++ b/
board/samsung/universal/universal.c
@@
-413,12
+413,15
@@
static void show_hw_revision(void)
struct s5pc110_gpio *gpio =
(struct s5pc110_gpio *)S5PC110_GPIO_BASE;
+ /* default is Rev 0.4 */
+ board_rev &= ~0xf;
+ board_rev |= 0x4;
+
udelay(2000);
- if (gpio_get_value(&gpio->gpio_j0, 4)) {
+ /* if GPJ0[4] is low, it's Rev 0.0 */
+ if (gpio_get_value(&gpio->gpio_j0, 4) == 0)
board_rev &= ~0xf;
- board_rev |= 0x4;
- }
}
}