]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ENGR00287992-1 power: imx6: add imx6 USB charger detection
authorPeter Chen <peter.chen@freescale.com>
Thu, 14 Nov 2013 05:52:14 +0000 (13:52 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 20 Aug 2014 08:06:42 +0000 (10:06 +0200)
commitc81d25363487f331dfccd1e1bffefc4c56b9ddc6
tree1bb29fc90b157c66649c15e93b0ba8bc27addc8c
parent4139a9d4cdd09adf64054fe2e40f443a8eb99b8a
ENGR00287992-1 power: imx6: add imx6 USB charger detection

Add imx6 USB charger detection, the vbus supplier will create and
remove struct usb_charger, and notify vbus connect and disconnect
event. The detail USB charger detection flow is at: "i.MX6 RM,
Chapter Universal Serial Bus 2.0 Integrated PHY (USB-PHY),
Charger detection, Charger detection software flow".

Since imx6 only has charger detection function, and no charging
current function is existed. It the user wants the detection abilities
from SoC, it can use this detection method
(add imx6-usb-charger-detection at dts). If the charger IC
already has USB charger detection function, and the user wants
to use the detection method from charger IC, please do not add
imx6-usb-charger-detection property at dts.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
drivers/power/Kconfig
drivers/power/Makefile
drivers/power/imx6_usb_charger.c [new file with mode: 0644]
include/linux/power/imx6_usb_charger.h [new file with mode: 0644]