extcon: add extcon-odroid-usbotg driver 76/36876/3
authorRobert Baldyga <r.baldyga@samsung.com>
Tue, 10 Mar 2015 10:24:43 +0000 (11:24 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 10 Jun 2015 11:47:16 +0000 (20:47 +0900)
commit578307282a9e47a9303de4fd55ed1bcdae995cbf
tree235cb72aaf6385af472c2f006989e3201a8dfe1c
parent8561c7608398bdd1403eb770aa41b27dc9933bf9
extcon: add extcon-odroid-usbotg driver

This patch adds extcon driver for Odroid U3, U3+, X and XU3 boards.
It recognizes type of USB cable connected to Odroid board basing on
two signal lines VBUS_DET and OTG_ID (the second one is present only
on Odroid U3+ board).

Following table of states presents relationship between this signals
and detected cable type:

state    | VBUS_DET |  OTG_ID
-------------------------------
USB      |    H     |    H
USB-HOST |    H     |    L
disconn. |    L     |    H
USB-HOST |    L     |    L

This driver is based on extcon-gpio driver.

Change-Id: I58d99a5681f99d79556123d4700d54dc836ee571
Signed-off-by: Ɓukasz Stelmach <l.stelmach@samsung.com>
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
drivers/extcon/Kconfig
drivers/extcon/Makefile
drivers/extcon/extcon-odroid-usbotg.c [new file with mode: 0644]