usb: fotg210-udc: Implement VBUS session
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 18 Jan 2023 07:09:21 +0000 (08:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2023 13:10:44 +0000 (14:10 +0100)
commit3e679bde529e892a59e89d3a0728cc153e8ecefe
treedada0059f4d26f303a7c48e45e8fed643f7e915d
parent816f518df20531a01eb8ddd2e84adc9791e16539
usb: fotg210-udc: Implement VBUS session

Implement VBUS session handling for FOTG210. This is
mainly used by the UDC driver which needs to call down to
the FOTG210 core and enable/disable VBUS, as this needs to be
handled outside of the HCD and UDC drivers, by platform
specific glue code.

The Gemini has a special bit in a system register to turn
VBUS on and off so we implement this in the FOTG210 core.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20230103-gemini-fotg210-usb-v2-7-100388af9810@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/fotg210/fotg210-core.c
drivers/usb/fotg210/fotg210-udc.c
drivers/usb/fotg210/fotg210.h