usb: chipidea: add role switch class support

USB role is fully controlled by usb role switch consumer(e.g. typec),
usb port can be at host mode(USB_ROLE_HOST), device mode connected to
host(USB_ROLE_DEVICE), or not connecting any partner(USB_ROLE_NONE).

Signed-off-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
This commit is contained in:
Li Jun 2019-08-26 18:25:12 +08:00 • committed by Peter Chen
commit 05559f10ed
No known key found for this signature in database
GPG key ID: 4859298150D671BB
4 changed files with 100 additions and 4 deletions