diff options
author | Stefano Babic <sbabic@denx.de> | 2012-10-16 04:02:20 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-10-25 11:30:49 -0700 |
commit | 9f670540143bb43cf6e659aba26b59ee76e845eb (patch) | |
tree | ac7402e4a47e7e25aa75efeed5a6496f80c43378 /board/teejet/mt_ventoux | |
parent | 000820b5835c2b8b863af992b66dc973dc4bd202 (diff) | |
download | u-boot-imx-9f670540143bb43cf6e659aba26b59ee76e845eb.zip u-boot-imx-9f670540143bb43cf6e659aba26b59ee76e845eb.tar.gz u-boot-imx-9f670540143bb43cf6e659aba26b59ee76e845eb.tar.bz2 |
OMAP3: mt_ventoux: power on USB at startup
Updated revision of the board uses GPIOs to activate
the USB ports.
Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'board/teejet/mt_ventoux')
-rw-r--r-- | board/teejet/mt_ventoux/mt_ventoux.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/teejet/mt_ventoux/mt_ventoux.c b/board/teejet/mt_ventoux/mt_ventoux.c index ecb9b6c..9622a81 100644 --- a/board/teejet/mt_ventoux/mt_ventoux.c +++ b/board/teejet/mt_ventoux/mt_ventoux.c @@ -45,6 +45,8 @@ DECLARE_GLOBAL_DATA_PTR; #define BUZZER 140 #define SPEAKER 141 +#define USB1_PWR 127 +#define USB2_PWR 149 #ifndef CONFIG_FPGA #error "The Teejet mt_ventoux must have CONFIG_FPGA enabled" @@ -247,6 +249,12 @@ int board_init(void) gpio_direction_output(BUZZER, 0); gpio_direction_output(SPEAKER, 0); + /* Activate USB power */ + gpio_request(USB1_PWR, "USB1_PWR"); + gpio_request(USB2_PWR, "USB2_PWR"); + gpio_direction_output(USB1_PWR, 1); + gpio_direction_output(USB2_PWR, 1); + return 0; } |