msm: pm2: Call cpr suspend and resume in PC scenario too

CPR suspend and resume should be called into the PC mode
too otherwise it will race with the CPUFREQ notifiers
which are also at the syscore operations level.

Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
(cherry picked from commit d516bb2101fc96c98ab7193495e9bad9ae61076c)

Change-Id: I5181788a0a8c649742d41621cfc0f93dd45b7c43
Signed-off-by: Gopal Goberu <ggober@codeaurora.org>
msm: pm2: Configure MPA5_GDFS_CNT_VAL register for 8x25Q

Set the "DBGPWRUPEREQ_OVERRIDE" bits for C2 & C3. This allows
the cores to go into LPM when the debugger is connected.

Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
(cherry picked from commit aa7310ba21fb6e7e64b95d6e955ea2c7104d6fe5)

Signed-off-by: Gopal Goberu <ggober@codeaurora.org>
(cherry picked from commit b17fd2d5df6c553c777977db3ad409726ec65609)

Change-Id: I5944095e93cbc386738b09e3227b11058c430d7d
Signed-off-by: Gopal Goberu <ggober@codeaurora.org>
msm: 8625: Add support for the M2A_2 fiq handler

The FIQ handler gets triggered when the M2A_2
interrupt is fired by the NON-HLOS. The  FIQ
handler saves the CPU context and helps in
debugging the watch dog timeout issues.

Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
(cherry picked from commit 7fbd9b77bfb8ee1b00e683bc487e62b7eef2bfb5)

Change-Id: I6fdf279419a51c7ab95e0f15549283964e40a971
Signed-off-by: Gopal Goberu <ggober@codeaurora.org>

Conflicts:

	arch/arm/mach-msm/Makefile
msm: 8625: Initialise the FIQ Handler only for MSM8x25

Added a check to initialise the FIQ handler for MSM8x25 CPUs.

Change-Id: Ie8ece9480554436152b061526c642b074d11fb71
Signed-off-by: Aparna Mallavarapu <aparnam@codeaurora.org>
msm: board-msm7627a-wlan: Fix wlan gpio request failures in FFA platform

gpio request failures are seen in 7x27a FFA + AR600x wlan
chip combination while bringing WLAN down. The root cause is,
msm_AR600X_shutdown_power() function is trying to request
gpio line (gpio_wlan_sys_rest_en) which is already requested
in msm_AR600X_setup_power().

This patch removes gpio_request for 'gpio_wlan_sys_rest_en'
call in msm_AR600X_shutdown_power() and introduces new flag
'wlan_powered_up' to track wlan power on status.

In addition, Added new condition in msm_AR600X_setup_power()
and msm_AR600X_shutdown_power() function to perform
gpio_free(gpio_wlan_sys_rest_en) only for relevant platforms.

CRs-Fixed: 401855
Signed-off-by: Antony Thomas <athomas@codeaurora.org>
(cherry picked from commit 20c171d25473fc43ff7f30c0c5f18502f1f57350)

Change-Id: Ie2e9d7716fdbde463d9e269c8d0d2b0ff2ce5b43
Signed-off-by: Gopal Goberu <ggober@codeaurora.org>
board: msm: Set the backlight using MSM GPIO during suspend

Set backlight during suspend to a non-zero level using MSM gpio
during suspend so that the backlight comes up during resume
on MSM 2.0 REV 8x25 EVB.

Change-Id: Id07da20e2721ad6b9c70d6b6e6ea2b8e649428b4
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
board: msm: Add settling delay for display resume.

This change adds minimal delay to allow for settling time
of MIPI DSI Bridge reset chip after it comes out of the
reset sequence.

Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
(cherry picked from commit 62180524c570471eb8095fa9c907e5ae6a90e4ae)

Change-Id: Ie466c829498cf0690b2c2ca1f8380b59f4661bbf
Signed-off-by: Gopal Goberu <ggober@codeaurora.org>
msm_fb: Add support for Truly HX8389B panel

Add support for Truly HX8389B panel drivers and display
board file support for SKUD prime target.

Change-Id: Ibb94cc7a1077f22f00dce0952f34583ebe95a670
Signed-off-by: Aparna Mallavarapu <aparnam@codeaurora.org>

Conflicts:

	drivers/video/msm/Kconfig
board-msm7627a: msm: Add support for continuous splash screen.

This change adds support for continuous splash screen on SKUD
prime device on MIPI HX3839B panel.

Change-Id: Idd1da7a44188ed78b08e68e856e9a58d922722e2
Signed-off-by: Aparna Mallavarapu <aparnam@codeaurora.org>
arm: board-msm7627a: Add TS support for 8x25 SKUD

Add TS support for 8x25 QRD since it uses a different
irq_gpio.

Change-Id: Ic32a1a7f0a0c0486e9271375c2b163c4debae5e0
Signed-off-by: Aparna Mallavarapu <aparnam@codeaurora.org>
USB: msm72k_otg: Block notifying pmic about current drawn multiple times

In some cases, due to spurious interrupts, we may end up in notifying the
amps of current to be drawn to the PMIC multiple times.

Handle such cases by comparing the previously updated data to the PMIC with
the present data.

CRs-Fixed: 309178
Signed-off-by: Rajkumar Raghupathy <raghup@codeaurora.org>
(cherry picked from commit 67ff4ed3a15d43cf3e1e83d72a6eae247998c69b)

Change-Id: I69f39d2f484a6be42325d5c17d10e9ede0b66148
Signed-off-by: Sunil Joseph <sunilj@codeaurora.org>