From 2d4b030e4780f2af592f3d7f1fba06e53b0e988d Mon Sep 17 00:00:00 2001 From: Kyungmin Park Date: Fri, 5 Feb 2010 21:07:31 +0900 Subject: [PATCH] s5pc110: wmg160: USB support Signed-off-by: Kyungmin Park --- board/samsung/universal/universal.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/board/samsung/universal/universal.c b/board/samsung/universal/universal.c index db00887..31b45c3 100644 --- a/board/samsung/universal/universal.c +++ b/board/samsung/universal/universal.c @@ -1146,8 +1146,10 @@ static void micro_usb_switch(int path) } else if (machine_is_geminus()) { if (hwrevision(1)) i2c_set_bus_num(I2C_GPIO6); - } else if (machine_is_wmg160()) + } else if (machine_is_wmg160()) { i2c_set_bus_num(I2C_GPIO6); + return; + } addr = 0x25; /* fsa9480 */ if (i2c_probe(addr)) { @@ -1158,12 +1160,12 @@ static void micro_usb_switch(int path) if (path) val[0] = 0x90; /* VAUDIO */ else - val[0] = 0x24; /* DHOST */ + val[0] = (1 << 5) | (1 << 2); /* DHOST */ i2c_write(addr, 0x13, 1, val, 1); /* MANSW1 */ i2c_read(addr, 0x2, 1, val, 1); - val[0] &= ~(1 << 2); + val[0] &= ~(1 << 2); /* Manual switching */ i2c_write(addr, 0x2, 1, val, 1); } -- 2.7.4