usb: chipidea: introduce ci_platform_configure
authorPeter Chen <peter.chen@freescale.com>
Tue, 17 Mar 2015 02:40:50 +0000 (10:40 +0800)
committerPeter Chen <peter.chen@freescale.com>
Fri, 14 Aug 2015 01:13:11 +0000 (09:13 +0800)
commitbf9c85e78d0fec61360ece46dacf9ab71ba89361
tree1356a3a4348e74f3539c194b9a969fe3864cb088
parent9d2effea12a3a7139daf04a2be97f18d3e6913a3
usb: chipidea: introduce ci_platform_configure

It is used to configure controller parameters according to
platform data, like speed, stream mode, etc, both host and
device's initialization need it, most of code are the
same for both roles, with this new interface, it can reduce
the duplicated code and be easy to maintain in future.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
drivers/usb/chipidea/ci.h
drivers/usb/chipidea/core.c
drivers/usb/chipidea/host.c