summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorckkim <changkon12@gmail.com>2014-05-12 10:44:44 +0400
committerckkim <changkon12@gmail.com>2014-05-12 10:44:44 +0400
commit2865d540b61283d9bfb78b57482a06330d7a3685 (patch)
tree9334576f9b432a1cddf45cd19139455cf9556b2f
parentc36aebdd0e906ab555276c3eea7c03cade9d3144 (diff)
downloadu-boot-2865d540b61283d9bfb78b57482a06330d7a3685.tar.xz
U3+ OTG_HOST detect pin initialize.
-rw-r--r--board/samsung/smdk4212/smdk4212.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/samsung/smdk4212/smdk4212.c b/board/samsung/smdk4212/smdk4212.c
index 990fb56053..c5b43078c3 100644
--- a/board/samsung/smdk4212/smdk4212.c
+++ b/board/samsung/smdk4212/smdk4212.c
@@ -305,6 +305,15 @@ int board_late_init (void)
GPIO_SetFunctionEach(eGPIO_X2, eGPIO_2, eGPI);
GPIO_SetPullUpDownEach(eGPIO_X2, eGPIO_2, 1); // pull-down
+ // u3+ otg_host vbus output disable (2014.05.12)
+ GPIO_SetFunctionEach(eGPIO_L2, eGPIO_0, eGPO);
+ GPIO_SetPullUpDownEach(eGPIO_L2, eGPIO_0, eGPUDdis); // pull-none
+ GPIO_SetDataEach(eGPIO_L2, eGPIO_0, 0);
+
+ // u3+ otg_host otg_ID detect Input config (2014.05.12)
+ GPIO_SetFunctionEach(eGPIO_X3, eGPIO_1, eGPI);
+ GPIO_SetPullUpDownEach(eGPIO_X3, eGPIO_1, eGPUen); // pull-up
+
udelay(10);
if (GPIO_GetDataEach(eGPIO_X2, eGPIO_2) == 0){
printf("ModeKey Check... run normal_boot \n");