]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: mv_udc: Clean up the EP initialization
authorMarek Vasut <marex@denx.de>
Wed, 10 Jul 2013 01:16:30 +0000 (03:16 +0200)
committerMarek Vasut <marex@denx.de>
Mon, 29 Jul 2013 21:01:31 +0000 (23:01 +0200)
commit2ea4b44832eee9a85167bd2a54a7b603618d80b0
treec976a16d532e91bf39e4f2dee510efccb5dc1855
parent532d846f891f31e2582428d7572b98103e3ec268
usb: mv_udc: Clean up the EP initialization

Move the constant values that are programmed into mv_ep.ep into
separate static const structure so they can be memcpy()'d when
the initialization happens.

Moveover, we only every init NUM_ENDPOINTS, not 2 * NUM_ENDPOINTS,
so fix this bug as well.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Lei Wen <leiwen@marvell.com>
Cc: Otavio Salvador <otavio@ossystems.com.br>
Cc: Stefano Babic <sbabic@denx.de>
drivers/usb/gadget/mv_udc.c
include/usb/mv_udc.h