mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-20 22:21:41 +00:00
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>
This commit is contained in:
parent
000820b583
commit
9f67054014
1 changed files with 8 additions and 0 deletions
|
@ -45,6 +45,8 @@ DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
#define BUZZER 140
|
#define BUZZER 140
|
||||||
#define SPEAKER 141
|
#define SPEAKER 141
|
||||||
|
#define USB1_PWR 127
|
||||||
|
#define USB2_PWR 149
|
||||||
|
|
||||||
#ifndef CONFIG_FPGA
|
#ifndef CONFIG_FPGA
|
||||||
#error "The Teejet mt_ventoux must have CONFIG_FPGA enabled"
|
#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(BUZZER, 0);
|
||||||
gpio_direction_output(SPEAKER, 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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue