msm: board-msm7627a-io: Add focal tech touch support for EVBD+

EVBD+ can support both focaltech and synaptic controllers. Add
support for both the controllers.

Change-Id: I6b31fdcf7a7ddae39cbabc5b77f62243f5cb6205
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
msm: 8x25Q: Make PMEM MDP size 0 for low memory devices

If RAM size is less than 512MB, this change will make
pmem_mdp_size = 0, to give more memory for applications.
Composition will be done with GPU and allocations happen
from system heap in this case.

Change-Id: Ica328c0e36ceeb0086d1f45fdeef29f987dbdaa3
Signed-off-by: k <sravank1@codeaurora.org>
msm: board7627a: Make CAMERA/MM use CMA heap

Make camera_preview heap use CMA heap type. With this, that
heap area will be under linux memory space when heap is not
being used by any client.

Change-Id: I831a9e338af8e78dc3c440557b8596e4ad12801b
Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>

Conflicts:

	arch/arm/mach-msm/board-msm7x27a.c
msm: acpuclock-8625q: Request regulator if probe has passed

Add a check to make sure that non-8625q devices do not
initialize the regulator handle.

Change-Id: Idd0dbaaf559b5864611127334ed3274366725110
Acked by: Manish Poddar <mpoddar@qti.qualcomm.com>
Signed-off-by: Utsab Bose <ubose@codeaurora.org>
msm7627a: bluetooth: handle BT On failure case proprely

If Bluetooth on is failed due to some reason, clean up is not
proper.
Also when BT turn on fail, we are trying to release some resources
twice. Once as a part of handling the fail cleanup and other
when the userspace initiates turn off process because of turn
on timeout.

CRs-fixed: 439129
Change-Id: I5a5bd35e8f3ba9cfebfd8f2b18b517180df95d39
Signed-off-by: Ram Mohan Korukonda <rkorukon@codeaurora.org>

Conflicts:

	arch/arm/mach-msm/board-msm7627a-bt.c
msm7627a: bluetooth: datatype mismatch on read bahama version

Between marimba driver and board file, there is datatype mismatch
which is causing to access a invalid memory location.

CRs-fixed: 435621
Change-Id: I3222b4916880f01f67b554dd8aa162debef63322
Signed-off-by: Ram Mohan Korukonda <rkorukon@codeaurora.org>
msm: devices-msm7x27a: Vote gpu freq 245.76 MHz at nominal on 8x25Q

As per SLT verification and HW team inputs GPU could run at 245.76 MHz
at nominal clock on 8x25Q to get better performance.

Change-Id: Ia523e9809717e979e1f41d8a13a319d5f16347e2
CRs-fixed: 441142
Signed-off-by: Vinay Roy <vroy@codeaurora.org>
regulator: onsemi-ncp: Fix the MIN slew rate

OnSemi NCP6335D datasheet indicates that the min slew rate
is 333ns. Also, fix the slew rate calculation.

Change-Id: I502e40b1c88d8c0e78b123ebbf9810c7ee162c8a
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
msm: boardmsm7627a: Re-add memory marker support for 7627a

Due to previous CMA changes, this support has been broken.
Add it again.

Change-Id: Ic6651eb1894053b74b24c1739c41ce1a9236e9fe
Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
msm: acpuclock-8625q: Change the PVS equation

Change the PVS equation according to the PTE
recommendation of using PVS value or 1.1V,
whichever is maximum ,for 1.2GHZ.

Signed-off-by: Utsab Bose <ubose@codeaurora.org>
Acked by: Manish Poddar <mpoddar@qti.qualcomm.com>
Change-Id: I5f21c7c576e8af859c6a342608108893c485bbe5
msm: msm8x25q: Disable sleep mode for onsemi regulator

The sleep mode bit causes a glitch in the output voltage
while moving from higher to lower voltage.

Change-Id: I961d2e27a05156f6c80cd4deecbe1ccd004905f6
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
msm: cpr: Set turbo vmin 1.175V for 1GHz parts

Set Turbo vmin to 1.175V for 1GHz 8x25 parts.

Change-Id: Ic30c7608c00c50a42dd5ceeceeb52a6df6acb34e
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
msm: rpc: add shutdown and restart handler for rpc

Add shutdown and restart handler for rpcrouter. The
shutdown handler will take care of calling the
msm_rpcrouter_close function with a pre defined
priority. PM no longer had to handle rpc in the shutdown/reboot
sequence.

Signed-off-by: Angshuman Sarkar <angshuman@codeaurora.org>
(cherry picked from commit 4e253c2c596ff611556736822a6df166132504e7)

Change-Id: I312c38ce222f10cc5589bb9de22d7a6bf47045d5
Signed-off-by: Gopal Goberu <ggober@codeaurora.org>
msm: rpc: add shutdown and restart handler for rpc

Add shutdown and restart handler for rpcrouter. The
shutdown handler take care of calling the
msm_rpcrouter_close function with a pre defined
priority. PM no longer handle rpc close in the shutdown/reboot
sequence.

CRs-fixed: 396641
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
Signed-off-by: Angshuman Sarkar <angshuman@codeaurora.org>
(cherry picked from commit 0975c60881a90c0adf36bac4739b812e34acb813)

Conflicts:

	arch/arm/mach-msm/smd_rpcrouter.c

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

Conflicts:

	arch/arm/mach-msm/smd_rpcrouter.c
	arch/arm/mach-msm/smd_rpcrouter.h
regulator: ncp6335d: API to configure the regulator during reboot

In cases when the device is not completely turned off (reboot)
the regulator registers are not reset. This can cause the device to
boot at the same voltage at which it went down, leading to
instability. Add an API to set the default voltage.

Also, call this API before the APPS goes for a restart on 8x25q.

CRs-Fixed: 444285
Change-Id: If023422e32acfe20d8cc0eafa626ad7331628ab2
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>

Conflicts:

	arch/arm/mach-msm/restart_7k.c
msm: board-msm7x27a: Add one ION heap for audio from bootloader memory

Divide the audio heap into two different heaps with size 960KB and
232 KB. Allocate the audio heap taking 960 KB from bootloader memory
by initializing the base address of the heap in platform data which
saves upto 960 KB of memory space

Change-Id: If10ee4b04401bc3069700e340cdf6859be886249
Signed-off-by: Sriranjan Srikantam <cssrika@codeaurora.org>

Conflicts:

	include/linux/ion.h
msm Camera: Enable OV8825 for EVBD

Enable OV8825 8MP sensor for EVBD

Change-Id: I19b9e90085f69473db60372548a3c5f95c332098
Signed-off-by: Krupal Divvela <kdivvela@codeaurora.org>
msm_fb: Disable LCDC/DSI Video timing generator during boot up

Disable LCDC and DSI Video timing generator during MDP
initialization if continuous splash screen is disabled.

Change-Id: I64276550f28e1f316c420f9cb158f7b8e938b8ea
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>

Conflicts:

	drivers/video/msm/mdp.c
	drivers/video/msm/mdp.h
	drivers/video/msm/mdp_hw_init.c
msm_fb: Add support for NT35510 WVGA panel on 8x25Q EVBD

Add support for WVGA NT35510 panel to come up on 8x25Q chipset
on EVBD board using fastboot param command. Also add support
for backlight using PWM as the default approach for this panel.

CRs-fixed: 446358
Change-Id: I2ed64d97224076608cd782ab6e1c2402417afe84
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>

Conflicts:

	arch/arm/mach-msm/board-msm7627a-display.c
	drivers/video/msm/mdp_hw_init.c
	drivers/video/msm/mipi_NT35510.c
msm: board-msm7627a-io: Add atmel mxt touch support for EVBD

Change-Id: I9f2b1f509645e4f85104fcbe05ceebd10189be61
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>