OSDN Git Service

usb: dwc3: meson-g12a: handle the phy and glue registers separately
authorNeil Armstrong <narmstrong@baylibre.com>
Thu, 26 Mar 2020 13:44:55 +0000 (14:44 +0100)
committerFelipe Balbi <balbi@kernel.org>
Tue, 5 May 2020 08:00:12 +0000 (11:00 +0300)
commit013af227f58a97ffc61b99301f8f4448dc7e7f55
tree1911d6c495b89c3c5d0dd6a5b36721479daa6ca2
parent5174564cb9156a7c7b4d94a64c1cafdfd9a20403
usb: dwc3: meson-g12a: handle the phy and glue registers separately

On the Amlogic GXL/GXM SoCs, only the USB control registers are available,
the PHY mode being handled in the PHY registers.

Thus, handle the PHY mode registers in separate regmaps and prepare
support for Amlogic GXL/GXM SoCs by moving the regmap setup in a callback
set in the SoC match data.

Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc3/dwc3-meson-g12a.c