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:
dfad3dd
)
s5pc210: slp7: fix hw revision check
author
Minkyu Kang
<mk7.kang@samsung.com>
Wed, 19 Jan 2011 10:30:37 +0000
(19:30 +0900)
committer
Minkyu Kang
<mk7.kang@samsung.com>
Wed, 19 Jan 2011 10:30:37 +0000
(19:30 +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
0216211
..
f593fe7
100644
(file)
--- a/
board/samsung/slp7_c210/slp7.c
+++ b/
board/samsung/slp7_c210/slp7.c
@@
-1004,9
+1004,14
@@
static unsigned short get_adc_value(int channel)
static unsigned int get_hw_revision(void)
{
- int hwrev = 0, mode0, mode1;
+ int hwrev = 0;
+ int i;
- debug("mode0: %d, mode1: %d, hwrev 0x%x\n", mode0, mode1, hwrev);
+ /* 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);
+ }
return hwrev;
}
@@
-1094,7
+1099,6
@@
int misc_init_r(void)
#ifdef CONFIG_CMD_PMIC
max8998_init(I2C_5);
- run_command("pmic ldo 4 off", 0); /* adc off */
#endif
return 0;