usb: dwc3: core: allocate scratch buffers
authorFelipe Balbi <balbi@ti.com>
Thu, 19 Dec 2013 19:04:28 +0000 (13:04 -0600)
committerFelipe Balbi <balbi@ti.com>
Wed, 5 Mar 2014 20:39:55 +0000 (14:39 -0600)
commit0ffcaf3798bfd83aed0a650cddb9d1ee825ff2bb
tree46ad40476222c30b9225ba6c17ade6a8866fffc1
parent265b70a73aff2a21e74f1fbe7ffaaeb4608adc98
usb: dwc3: core: allocate scratch buffers

We must read HWPARAMS4 register to figure out
how many scratch buffers we should allocate.

Later patch will use "Set Scratchpad Buffer
Array" command to pass the pointer to the
IP so it can be used during hibernation.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.h