usb: chipidea: msm: Add proper clk and reset support
authorStephen Boyd <stephen.boyd@linaro.org>
Wed, 28 Dec 2016 22:57:01 +0000 (14:57 -0800)
committerPeter Chen <peter.chen@nxp.com>
Fri, 20 Jan 2017 07:25:42 +0000 (15:25 +0800)
commite9f15a71f17b328be44767cb893576c7c838f996
tree0dfbcace239caace2a46455502609912d0a35c4f
parentee33f6e70b9e611b7363f1a5c4efb642a8995889
usb: chipidea: msm: Add proper clk and reset support

The msm chipidea controller uses two main clks, an AHB clk to
read/write the MMIO registers and a core clk called the system
clk that drives the controller itself. Add support for these clks
as they're required in all designs.

Also add support for an optional third clk that we need to turn
on to reset the controller and wrapper logic and other
"housekeeping" things. This clk was removed in later revisions of
the hardware because the reset methodology no longer required
clks to be enabled to propagate resets.

Acked-by: Peter Chen <peter.chen@nxp.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/ci_hdrc_msm.c