diff options
author | Troy Kisky <troy.kisky@boundarydevices.com> | 2013-10-10 15:27:59 -0700 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2013-10-20 23:46:33 +0200 |
commit | d1a5286099a1ccb43fa8599e2c806ca039783e2f (patch) | |
tree | f54c7565f25023c0e90f551d8e62aa6fbfd26167 /include | |
parent | 8287314888b15ed39ce05b06f60372768ca12d08 (diff) | |
download | u-boot-imx-d1a5286099a1ccb43fa8599e2c806ca039783e2f.zip u-boot-imx-d1a5286099a1ccb43fa8599e2c806ca039783e2f.tar.gz u-boot-imx-d1a5286099a1ccb43fa8599e2c806ca039783e2f.tar.bz2 |
usb: ehci-mx6: add support for otg port
Previously, only host1 was supported using an index of 0.
Now, otg has index 0, host1 is 1, host2 is 2, host3 is 3.
Since OTG requires usbmode to be set after reset, I added
CONFIG_EHCI_HCD_INIT_AFTER_RESET to nitrogen6x.h and
mx6qsabreauto.h.
I also added a weak function board_ehci_power to handle
turning power on/off for otg.
Type is type of device connected (USB stick vs Host.)
Init is type of device desired.
Only power up port if type == init == USB_INIT_HOST.
Only return error if type != init.
Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/mx6qsabreauto.h | 3 | ||||
-rw-r--r-- | include/configs/nitrogen6x.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/configs/mx6qsabreauto.h b/include/configs/mx6qsabreauto.h index 5530fc6..9e48a49 100644 --- a/include/configs/mx6qsabreauto.h +++ b/include/configs/mx6qsabreauto.h @@ -23,7 +23,8 @@ #define CONFIG_USB_STORAGE #define CONFIG_USB_HOST_ETHER #define CONFIG_USB_ETHER_ASIX -#define CONFIG_MXC_USB_PORT 1 +#define CONFIG_USB_MAX_CONTROLLER_COUNT 2 +#define CONFIG_EHCI_HCD_INIT_AFTER_RESET /* For OTG port */ #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) #define CONFIG_MXC_USB_FLAGS 0 diff --git a/include/configs/nitrogen6x.h b/include/configs/nitrogen6x.h index 065dc97..a08eea6 100644 --- a/include/configs/nitrogen6x.h +++ b/include/configs/nitrogen6x.h @@ -125,7 +125,8 @@ #define CONFIG_USB_HOST_ETHER #define CONFIG_USB_ETHER_ASIX #define CONFIG_USB_ETHER_SMSC95XX -#define CONFIG_MXC_USB_PORT 1 +#define CONFIG_USB_MAX_CONTROLLER_COUNT 2 +#define CONFIG_EHCI_HCD_INIT_AFTER_RESET /* For OTG port */ #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) #define CONFIG_MXC_USB_FLAGS 0 |