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:
c7d479e
)
s5pc1xx: aquila: If Factory Mode is Boot ON-USB, go to download mode automatically
author
Minkyu Kang
<mk7.kang@samsung.com>
Fri, 6 Nov 2009 07:39:58 +0000
(16:39 +0900)
committer
Minkyu Kang
<mk7.kang@samsung.com>
Fri, 6 Nov 2009 07:39:58 +0000
(16:39 +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
bb1713c
..
96e4e47
100644
(file)
--- a/
board/samsung/universal/universal.c
+++ b/
board/samsung/universal/universal.c
@@
-697,6
+697,15
@@
static void check_micro_usb(void)
val[0] |= 5; /* 600mA */
i2c_write(addr, 0x0C, 1, val, 1);
}
+
+ /* If Factory Mode Boot ON-USB, go to download mode */
+ i2c_read(addr, 0x07, 1, val, 1);
+
+#define FSA_ADC_FAC_USB 0x19
+#define FSA_ADC_FAC_UART 0x1d
+
+ if (val[0] == FSA_ADC_FAC_USB)
+ setenv("bootcmd", "usbdown");
}
#define MAX8998_REG_ONOFF1 0x11