usb: common: add API to update usb otg capabilities by device tree
authorLi Jun <jun.li@freescale.com>
Thu, 9 Jul 2015 07:18:44 +0000 (15:18 +0800)
committerFelipe Balbi <balbi@ti.com>
Wed, 29 Jul 2015 14:59:21 +0000 (09:59 -0500)
commit929412d94f2b75fe2a662afa2977bfb6a233c1c3
tree308458c63b28530f698017ef2c13159a6fda1cd9
parentb5513dede7c90ba2370ab5eb547568a22991907b
usb: common: add API to update usb otg capabilities by device tree

Check property of usb hardware to update otg version and disable SRP, HNP
and ADP if its disable flag is present.

Reviewed-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Li Jun <jun.li@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/common/common.c
include/linux/usb/of.h