]> asedeno.scripts.mit.edu Git - linux.git/commit
phy: da8xx-usb: Configure CFGCHIP2 to support OTG workaround
authorAlexandre Bailon <abailon@baylibre.com>
Mon, 7 Nov 2016 13:05:06 +0000 (14:05 +0100)
committerKishon Vijay Abraham I <kishon@ti.com>
Fri, 18 Nov 2016 12:49:15 +0000 (18:19 +0530)
commit23e9b38d8e7250ef1e202aea5df8d268601a3b5f
treeb4e1d2724002ff40a88fcb6af931f4c75f154625
parentfb954c48aea6de309018ecc1b68728d858277975
phy: da8xx-usb: Configure CFGCHIP2 to support OTG workaround

If we configure the da8xx OTG phy in OTG mode, neither device or host
mode will work. That is because the PHY is not able to detect and notify
the driver that value of ID pin changed.
To work despite this hardware limitation, the da8xx glue implement a
workaround.
But to work, the workaround require the VBUS sense and the session end
comparator to enabled.
Enable them if the phy is configured in OTG mode.

Signed-off-by: Alexandre Bailon <abailon@baylibre.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-da8xx-usb.c