usb: gadget: udc: atmel: update endpoint allocation for sam9x60
authorCristian Birsan <cristian.birsan@microchip.com>
Thu, 23 Jul 2020 18:49:01 +0000 (21:49 +0300)
committerFelipe Balbi <balbi@kernel.org>
Thu, 24 Sep 2020 08:56:17 +0000 (11:56 +0300)
commit26b324245018cc966c81097452017dea8f43ffc5
tree9fd0d67f92fec463732f2bc66e7dffe34f07a866
parent5b041a30448f6af2676de01685812b260bd95b31
usb: gadget: udc: atmel: update endpoint allocation for sam9x60

The DPRAM memory from the USB High Speed Device Port (UDPHS) hardware
block was increased. This patch updates the endpoint allocation for sam9x60
to take advantage of this larger memory. At the same time the
constraint to allocate the endpoints in order was lifted. To handle old
and new hardware in the same driver the ep_prealloc was added.

Signed-off-by: Cristian Birsan <cristian.birsan@microchip.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/udc/atmel_usba_udc.c
drivers/usb/gadget/udc/atmel_usba_udc.h