diff options
author | Peter Chen <peter.chen@freescale.com> | 2015-03-17 03:40:50 +0100 |
---|---|---|
committer | Peter Chen <peter.chen@freescale.com> | 2015-08-14 03:13:11 +0200 |
commit | bf9c85e78d0fec61360ece46dacf9ab71ba89361 (patch) | |
tree | 1356a3a4348e74f3539c194b9a969fe3864cb088 /drivers/usb/chipidea/ci.h | |
parent | usb: chipidea: otg_fsm: delete the duplicated reset controller operation (diff) | |
download | linux-bf9c85e78d0fec61360ece46dacf9ab71ba89361.tar.xz linux-bf9c85e78d0fec61360ece46dacf9ab71ba89361.zip |
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>
Diffstat (limited to 'drivers/usb/chipidea/ci.h')
-rw-r--r-- | drivers/usb/chipidea/ci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/ci.h b/drivers/usb/chipidea/ci.h index df57e49ed4ef..1320a4dbbcd5 100644 --- a/drivers/usb/chipidea/ci.h +++ b/drivers/usb/chipidea/ci.h @@ -427,4 +427,6 @@ u8 hw_port_test_get(struct ci_hdrc *ci); int hw_wait_reg(struct ci_hdrc *ci, enum ci_hw_regs reg, u32 mask, u32 value, unsigned int timeout_ms); +void ci_platform_configure(struct ci_hdrc *ci); + #endif /* __DRIVERS_USB_CHIPIDEA_CI_H */ |