OSDN Git Service

MIPS: OCTEON: octeon-usb: introduce dwc3_octeon_{read,write}q
authorLadislav Michl <ladis@linux-mips.org>
Mon, 19 Jun 2023 20:13:38 +0000 (22:13 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 23 Jun 2023 13:06:40 +0000 (15:06 +0200)
commit2257c6c90e9223e00d0e37ec721c86f45d8ba1d9
tree9e9d96e01f01258a37a5b65b2ce1303d314c64ad
parent793bef570951431cdf257b637fcb21356d7faec9
MIPS: OCTEON: octeon-usb: introduce dwc3_octeon_{read,write}q

Move all register access code into separate functions and
provide their no-op version for non Octeon platforms.

Later it might be possible to replace them with standard
Linux functions, however datasheets are not publicly available
and I have only one Octeon board to test, so lets stay on safe
side for now.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/cavium-octeon/octeon-usb.c