msm: footswitch-8x60: Update clock management code

Some footswitches (such as FS_MDP) require more than the standard
three clocks to be managed as part of the collapse and restore
sequences.  Additionally, the list of required clocks may differ
from SoC to SoC.

Rewrite the clock management to support arbitrarily long lists
of clocks with and without rate requirements. Also, update the
list of MDP-related clocks to include all of those required for
reliable collapses and restores.

CRs-Fixed: 317383
Change-Id: If92d589104095b240e8f95085868e90d3e22f48d
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
msm: footswitch-8x60: Reverse order of reset assertion

The order in which a power domain is put into reset matters for
ijpeg. Revert back to the previous order of resets by looping
over the clock array backwards. This should maintain the reset
order we had before, i.e. axi, ahb, and then core clocks.

CRs-Fixed: 327801
Change-Id: Ie228615a54a46cc0e408f2c646bcb979c30e59ff
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Merge branch 'cm-10.1' of https://github.com/johnnyslt/android_kernel_htc_msm8660 into cm-10.1