usb: chipidea: introduce imx7d USB charger detection

imx7d (and imx8mm, imx8mn) uses Samsung PHY and USB generic PHY driver.
The USB generic PHY driver is impossible to have a charger detection
for every user, so we implement USB charger detection routine at glue
layer. After the detection has finished, it will notify USB PHY
charger framework, and the uevents will be triggered.

Signed-off-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
This commit is contained in:
Jun Li 2020-01-23 14:35:58 +08:00 • committed by Peter Chen
commit 746f316b75
No known key found for this signature in database
GPG key ID: 4859298150D671BB
3 changed files with 259 additions and 1 deletions