]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: chipidea: add flag CI_HDRC_DUAL_ROLE_NOT_OTG
authorPeter Chen <peter.chen@freescale.com>
Mon, 12 Aug 2013 01:22:52 +0000 (09:22 +0800)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:54:49 +0000 (09:54 +0800)
commit5f314c9ad3c9eb1895c4c977329f2dd6c276820d
tree30d13ac6f56fb9494c0c9f6331956d21222a41a4
parente5c1e44b802618ef9c68473c25ff64cdd9c01508
usb: chipidea: add flag CI_HDRC_DUAL_ROLE_NOT_OTG

Since we need otgsc to know vbus's status at some chipidea
controllers even it is peripheral-only mode. Besides, some
SoCs (eg, AR9331 SoC) don't have otgsc register even
the DCCPARAMS_DC and DCCPARAMS_HC are both 1 at CAP_DCCPARAMS.

We inroduce flag CI_HDRC_DUAL_ROLE_NOT_OTG to indicate if the
controller is dual role, but not supports OTG. If this flag is
not set, we follow the rule that if DCCPARAMS_DC and DCCPARAMS_HC
are both 1 at CAP_DCCPARAMS, then this controller is otg capable.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
drivers/usb/chipidea/core.c
include/linux/usb/chipidea.h