monarudo: fix 2d clocks
msm: clock: Return error upon invalid call to clk_set_rate.

Calls to clk_set_rate should only change the voltage vote if the clock
is prepared. However, they need to check if the rate is valid even if
the clock is not prepared.

Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
(cherry picked from commit c009d9efe966f1f2ac300d43895bb448a9d27cc0)

Signed-off-by: Dhivya Subramanian <dthiru@codeaurora.org>
(cherry picked from commit 8b5d9d1b3b75cf42df5cf1faeda029ebfbdd308e)

Change-Id: I3a80401dcf76314441ad7624c69433c0ea1d1efe
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
msm: clock-debug.c: Display clock vdd fmax values

Display the voltage level a clock votes for debugging.
The currently selected level is shown in square brackets.

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

Conflicts:
	arch/arm/mach-msm/clock.h
msm: clock: Remove warned flag

Now that all clock consumers have moved over to using the
clk_prepare/unprepare APIs we can remove the warned flag that
used to indicate that we had already warned about improper usage
of the clock APIs. In particular, we used this flag to avoid
printing warnings for "source" clocks such as PLLs and
crystals that no consumer directly controls but that the clock
driver calls clk_enable() on during clk_set_rate().

Let's use a local variable for clk->dbg_name too because we use
it many times and it makes lines too long.

Change-Id: I0cb3052fd3dec2e46788fbf039ac73f65551e9f9
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Neha Pandey <nehap@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/clock-7x30.c
	arch/arm/mach-msm/clock-8974.c
	arch/arm/mach-msm/clock-8x60.c
	arch/arm/mach-msm/clock-9615.c
msm: msm_xo: Migrate to new clock APIs

Use the clk_prepare and clk_unprepare APIs to conform with the
changes to the clock APIs.

Change-Id: I3771ab992efcf83838d769776249379d9505ba28
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
video: ensure esc_byte_ratio is set before controlling clocks

This was a diff from the correct CAF code and causes us to set
the clock divider incorrectly during the splash screen handoff.
monarudo-panel: set esc_byte_ratio to 2

In HTC's coding wisdom, they had this code in mipi_dsi.c:

        esc_byte_ratio = pinfo->mipi.esc_byte_ratio;
        esc_byte_ratio = 2;

which hard coded the esc_byte_ratio to 2.  Now that we have
changed the code to correctly use the board config, change the
panel's configuration to be 2.
Merge pull request #26 from crpalmer/flicker

Flicker