On 12/21/2016 09:14 AM, Peng Fan wrote:
> Add usb support for mx6sllevk board.
> 
> Signed-off-by: Peng Fan <peng....@nxp.com>
> Cc: Stefano Babic <sba...@denx.de>
> ---
>  board/freescale/mx6sllevk/mx6sllevk.c | 18 ++++++++++++++++++
>  configs/mx6sllevk_defconfig           |  5 +++++
>  configs/mx6sllevk_plugin_defconfig    |  5 +++++
>  include/configs/mx6sllevk.h           |  9 +++++++++
>  4 files changed, 37 insertions(+)
> 
> diff --git a/board/freescale/mx6sllevk/mx6sllevk.c 
> b/board/freescale/mx6sllevk/mx6sllevk.c
> index 74a27a3..e6679fd 100644
> --- a/board/freescale/mx6sllevk/mx6sllevk.c
> +++ b/board/freescale/mx6sllevk/mx6sllevk.c
> @@ -129,3 +129,21 @@ int mmc_map_to_kernel_blk(int devno)
>  {
>       return devno;
>  }
> +
> +#define USB_OTHERREGS_OFFSET   0x800
> +#define UCTRL_PWR_POL          (1 << 9)
> +
> +int board_ehci_hcd_init(int port)
> +{
> +     u32 *usbnc_usb_ctrl;
> +
> +     if (port > 1)
> +             return -EINVAL;
> +
> +     usbnc_usb_ctrl = (u32 *)(USB_BASE_ADDR + USB_OTHERREGS_OFFSET +
> +                              port * 4);
> +
> +     /* Set Power polarity */
> +     setbits_le32(usbnc_usb_ctrl, UCTRL_PWR_POL);
> +     return 0;
> +}

Is this function similar to what usb_oc_config() does ?

-- 
Best regards,
Marek Vasut
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to