Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313478
b: refs/heads/master
c: b103a2e
h: refs/heads/master
v: v3
  • Loading branch information
Tony Lindgren committed Jul 10, 2012
1 parent e6c5630 commit f4db2cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6d2b6c9e69c99c1787f9978f9ed89231c5dbef09
refs/heads/master: b103a2e22a238085f5c50d96345e1a09bb1efd50
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-omap2/board-omap3evm.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,13 +362,15 @@ static int omap3evm_twl_gpio_setup(struct device *dev,
/* Enable VBUS switch by setting TWL4030.GPIO2DIR as output
* for starting USB tranceiver
*/
#ifdef CONFIG_TWL4030_CORE
if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2) {
u8 val;

twl_i2c_read_u8(TWL4030_MODULE_GPIO, &val, REG_GPIODATADIR1);
val |= 0x04; /* TWL4030.GPIO2DIR BIT at GPIODATADIR1(0x9B) */
twl_i2c_write_u8(TWL4030_MODULE_GPIO, val, REG_GPIODATADIR1);
}
#endif

return 0;
}
Expand Down

0 comments on commit f4db2cb

Please sign in to comment.