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>
(cherry picked from commit adac070445873c119bb40fdf8bdb7fef701a953e)
Signed-off-by: Mark Brown <broonie@kernel.org>
2 files changed