Commit Graph

2 Commits

Author SHA1 Message Date
Kunihiko Hayashi eea9ceeb3e usb: dwc3-generic: Add the size of regs property to glue structure
commit 211a06687649d33f9d56498e6aaea13286e4a34f upstream.

Add the size of regs property to the glue structure to correctly
specify the register region to map.

Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Reviewed-by: Marek Vasut <marex@denx.de>
2023-04-13 14:24:34 -05:00
Kunihiko Hayashi c7795fa738 usb: dwc3-generic: Export glue structures and functions
commit ef2313b8a26e83c92a14b43b3b3bb1c7af017d98 upstream.

In order to allow external SoC-dependent glue drivers to use dwc3-generic
functions, push the glue structures and export the functions to a header
file.

The exported structures and functions are:

- struct dwc3_glue_data
- struct dwc3_glue_ops
- dwc3_glue_bind()
- dwc3_glue_probe()
- dwc3_glue_remove()

The SoC-dependent glue drivers can only define their own wrapper driver
and specify these functions. The drivers can also add their own compatible
strings and configure functions.

Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Reviewed-by: Marek Vasut <marex@denx.de>
2023-04-13 14:24:34 -05:00