[U-Boot] [PATCH RFC V1 00/18] Make mv_udc work for i.mx6

Marek Vasut
2013-07-17T03:04:38Z

Hi Troy,

> Hi Marek,

Can you please base the series on top of my series I posted a while ago [1] ? I
feel bad about asking you to, but that series was out earlier and I'm planning
to apply it for next MW.

btw review would be nice ;-)

> This series is based on your u-boot-testing/chipidea branch.
> After this series, nitrogen6x works with tftpboot to transfer
> files over usb. But I still cannot enable CONFIG_USB_TTY
> because of link errors.

Ugh, USB TTY is not compatible with the new code, right? I use either netconsole
or the right way would be to port g_serial from Linux 2.6.37 .

> Do you have a plan for defining the following symbols in general code?
> setup_ep
> udc_endpoint_write
> udc_init
> udc_startup_events
> udc_connect
> udc_unset_nak
> udc_set_nak
> udc_unset_nak
>
> Or should usbtty be hacked to use more gadget style functions?
>
>
>
> Troy Kisky (18):
> Add functions for use with i.mx6 otg udc
> mx6: iomux: add GPR1 defines
> mx6: define OTG_BASE_ADDR
> nitrogen6x: add otg usb ethernet gadget support
> nitrogen6x: add CONFIG_MV_UDC
> usb: gadget: config: fix unaligned access issues
> usb: gadget: mv_udc: set udc after controller.udc is initialized
> usb: gadget: mv_udc: add MX6Q specific reset
> usb: gadget: ether set wMaxPacketSize
> usb: gadget: ether: return error from rx_submit if no request
> usb: gadget: mv_udc: split mv_udc.h file
> usb: udc: add udc.h include file
> usb: gadget: mv_udc: fix typo in error message
> usb: gadget: mv_udc: use static initialization of ops,udc
> usb: gadget: mv_udc: set is_dualspeed = 1
> usb: gadget: mv_udc: fix full speed connections
> usb: gadget: mv_udc: fix cache issues
> usb: gadget: mv_udc: clear desc upon ep_disable
>
> arch/arm/cpu/armv7/mx6/soc.c | 70 ++++++++++++++++++
> arch/arm/include/asm/arch-mx6/imx-regs.h | 2 +
> arch/arm/include/asm/arch-mx6/iomux.h | 6 ++
> arch/arm/include/asm/arch-mx6/sys_proto.h | 4 +
> board/boundary/nitrogen6x/nitrogen6x.c | 16 ++++
> drivers/serial/usbtty.h | 3 +-
> drivers/usb/gadget/config.c | 6 +-
> drivers/usb/gadget/ether.c | 5 +-
> drivers/usb/gadget/mv_udc.c | 100 ++++++++++++++++++-------
> drivers/usb/gadget/mv_udc.h | 117
> +++++++++++++++++++++++++++++ include/configs/nitrogen6x.h |
> 7 ++
> include/usb/designware_udc.h | 31 --------
> include/usb/mpc8xx_udc.h | 19 +----
> include/usb/musb_udc.h | 53 --------------
> include/usb/mv_udc.h | 118
> ------------------------------ include/usb/omap1510_udc.h |
> 27 +------
> include/usb/pxa27x_udc.h | 26 +------
> include/usb/udc.h | 60 +++++++++++++++
> 18 files changed, 371 insertions(+), 299 deletions(-)
> create mode 100644 drivers/usb/gadget/mv_udc.h
> create mode 100644 include/usb/udc.h

[1] http://patchwork.ozlabs.org/patch/257935/

Best regards,
Marek Vasut