diff options
author | Sanchayan Maity <maitysanchayan@gmail.com> | 2015-04-17 18:56:42 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-04-23 14:56:09 -0400 |
commit | bba97cd2c96ae0c21ad916a9c4eb363fe569a2f9 (patch) | |
tree | 3fb4ef85e577f600480be6233d3a7aee1e128b83 /board/toradex/colibri_vf | |
parent | a94bb7a42c0c377bd4eecc8aec1ef454c9bad51a (diff) | |
download | u-boot-imx-bba97cd2c96ae0c21ad916a9c4eb363fe569a2f9.zip u-boot-imx-bba97cd2c96ae0c21ad916a9c4eb363fe569a2f9.tar.gz u-boot-imx-bba97cd2c96ae0c21ad916a9c4eb363fe569a2f9.tar.bz2 |
colibri_vf: Enable USB support for Colibri Vybrid
Enable USB support on Toradex Colibri Vybrid Modules.
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
Acked-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'board/toradex/colibri_vf')
-rw-r--r-- | board/toradex/colibri_vf/colibri_vf.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/board/toradex/colibri_vf/colibri_vf.c b/board/toradex/colibri_vf/colibri_vf.c index e7bc6c1..31ebb19 100644 --- a/board/toradex/colibri_vf/colibri_vf.c +++ b/board/toradex/colibri_vf/colibri_vf.c @@ -216,6 +216,14 @@ static void clock_init(void) clrsetbits_le32(&ccm->ccgr10, CCM_REG_CTRL_MASK, CCM_CCGR10_NFC_CTRL_MASK); +#ifdef CONFIG_CI_UDC + setbits_le32(&ccm->ccgr1, CCM_CCGR1_USBC0_CTRL_MASK); +#endif + +#ifdef CONFIG_USB_EHCI + setbits_le32(&ccm->ccgr7, CCM_CCGR7_USBC1_CTRL_MASK); +#endif + clrsetbits_le32(&anadig->pll5_ctrl, ANADIG_PLL5_CTRL_BYPASS | ANADIG_PLL5_CTRL_POWERDOWN, ANADIG_PLL5_CTRL_ENABLE | ANADIG_PLL5_CTRL_DIV_SELECT); @@ -359,3 +367,19 @@ int checkboard(void) return 0; } + +int g_dnl_bind_fixup(struct usb_device_descriptor *dev, const char *name) +{ + unsigned short usb_pid; + + put_unaligned(CONFIG_TRDX_VID, &dev->idVendor); + + if (is_colibri_vf61()) + usb_pid = CONFIG_TRDX_PID_COLIBRI_VF61IT; + else + usb_pid = CONFIG_TRDX_PID_COLIBRI_VF50IT; + + put_unaligned(usb_pid, &dev->idProduct); + + return 0; +} |