msm: clock: Add a new API to print registers for debugging

clk_debug_print_hw() will format a list of register names and values, and
output the result to either the kernel log or a seq_file.

Change-Id: Ic225eb0261818faaee91b42955f2a517e927a30b
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
msm: clock-8226: Fix compile errors when CONFIG_DEBUG_FS is removed

Declare variables used only if CONFIG_DEBUG_FS is defined within ifdef
statements.

CRs-fixed: 554999
Change-Id: I28d2104ebd7baba8a151fc34946463f2429709b1
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
msm: clock-pll: Add round_rate for table based plls

The round rate function is used by clocks which attempt to configure
themselves dynamically based on the rate the client requests and
the rates the parent clock supports. The round_rate api is used to
determine the rates supported by the parent clock.

Change-Id: I6214492d68ba738f9ab9d642310a6fe8d3862956
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
msm: clock-a7: Add functions to implement mux_div ops for a7

The mux_div clk type uses function pointers to implement the nongeneric
aspects of its functionality. Add functions which allow reading and
writing to the necessary registers.

Change-Id: Ic2abe91bfd5f9de03d48e9b3a313fb7068ca71b5
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
msm: clock-a7: Parse data from device tree

Configure driver parameters based on device tree data.

Change-Id: I2dbc6a639219bc717e35e0f6c4b7b4c1f0a7d5d4
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
msm: clock-a7: Correct cpu clock reference count

The msm cpufreq driver requires that the reference count be 1 for devices
that have multiple cpus sharing the same clock.

Change-Id: I3f0e0121780f0365e04e3823e203f0cc85e838f5
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
msm: clock-8226: Set kpss_ahb_clk rate to SVS

The kpss_ahb_clk is configured to run at 75 MHz by APPs PBL. This requires
nominal voltage. Therefore, reconfigure the clock to run at a rate
supported by SVS in post_init.

Change-Id: Ic7ddb9d1e90b256e3973963b1a1db4ce549adc58
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
msm: clock-8226: Add clock lookup entries for clock-a7 driver

Switch to a different version of the acpuclock driver. The old files
will be removed later.

Change-Id: Ib920fbef623dcfcdadf624195a7f610027ec1607
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Kconfig: Add CONFIG_MSM_CORTEX

Compile in the appropriate clock driver for the ARM cpu family.

Conflicts:

	arch/arm/mach-msm/Kconfig
	arch/arm/mach-msm/Makefile

Change-Id: I6d3a2c6541e835d59a7645803a3f85c853529721
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>