msm: camera: move camera files to older branch snapshot.

This change rewinds the camera files to an older state. On top
of that, it applies the kernel 3.4 upgrade related changes that
are rquired to conform with the new APIs.

Change-Id: I6843bb4e79a6516ab24f88e24bc7fe3c3913193c
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
msm: camera: add ion dev fd field to frame structure.

The ion dev fd field is required to represent the client
that allocated the buffer represented by the frame.

Change-Id: I58dc3078083335965aeceb69f52fdb5a8d81643b
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
msm: camera: Check ping, pong mapping buffers validity while unmappping them.

why: without validating the ping, pong mapping buffers
address we are unmapping the buffers here, which is causing
a crash in msm_isp_release()

Change-Id: I72a2c8d499b4ab5daa7f705eeec8e96715545c4d
Signed-off-by: Roja Rani Yarubandi <rojay@codeaurora.org>
msm: camera: Restore Mercury hardware JPEG decoder driver

jb-rel kernels preserved the support in the code and only delete the driver directory.

Change-Id: Ife3bd6645c85e1d4d68f9922f5cdfa07644b72ee
msm: camera: Add support for LED flash for ov8825 cam sensor

LED flash is enabled for OV8825 Camera Sensor.

Signed-off-by: Lokesh Kumar Aakulu <lkumar@codeaurora.org>
(cherry picked from commit 85da21e9e354ab003791906c03321a08b6019737)

Change-Id: I44c4c5518c0c402fd35b6cd56943a070c27c119a
Signed-off-by: Gopal G Goberu <ggober@codeaurora.org>
msm: dma: Update the clk gating timeout to 100msec from 1sec.

As part of LPAII, the power profiling showed that having 100msec timeout
is letting the AXI switch to low frequency as soon as the APROC collapses.
Having this timeout as 1 sec is pushing the AXI to stay high for longer
time hence causing more power drain. Hence with this change this time
out is updated to 100msec.

Change-Id: I4aaf8e1ba5c177e4a77291f13a8ecd0fbc6e6130
Signed-off-by: Krishna Vanka <kvanka@codeaurora.org>
msm: 7x27a: audio: set LPA mode for LPA session

New bit has been added in DSP to identify LPA session.
Changes to set LPA decode bit for LPA session.

Change-Id: I39fde10b0f6af6c9543c0da690859311edd8d02c
Signed-off-by: Phani Kumar Allada <pallad@codeaurora.org>
msm_fb: HDMI: Fix for high HDMI sleep current

In certain cases, the HPD circuitry is not switched off when the
device goes to suspend state, resulting in high sleep current on
the HDMI power rail. This patch ensures that the HPD circuitry is
always turned off during suspend operation by removing an
unnecessary condition check.

Change-Id: I5846255ff4405ff1f449158f4b2f0d5ed0cd96bb
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
bdi: use deferable timer for sync_supers task

sync_supers task currently wakes up periodically for superblock
writeback. This hurts power on battery driven devices. This patch
turns this housekeeping timer into a deferable timer so that it
does not fire when system is really idle.

CRs-Fixed: 353700
Change-Id: Idc7953b5d0580546808bc5832291ca570837ee7f
Signed-off-by: Yong Wang <yong.y.wang@intel.com>
Signed-off-by: Xia Wu <xia.wu@intel.com>
Signed-off-by: Krishna Vanka <kvanka@codeaurora.org>
USB: dwc3: Add workaround for incorrect GUCTL register's default value

GUCTL[31:22] indicate the time period (in ns) of the reference clock
that is used to generate Isochronous Timestamp Packets (ITP).  This
value should be 8ns (125 MHz) by default.  But it is overridden with
0 on cores revision < 2.30a.  Fix this in software.

CRs-Fixed: 377846
Change-Id: I827540eb9d2f1ffc65b6f30200b6c0e575bc52d2
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
USB: dwc3: Add workaround for incorrect GUSB3PIPECTL default value

GUSB3PIPECTL[22] bit is for enabling/disabling receiver detection in
either U3 or Rx.Detect states.  It should be '0' by default to enable
receiver detection.  But it is overridden with '1' on cores revision <
2.30a.  Fix this in software.

CRs-Fixed: 377848
Change-Id: I9500f687f386330ed3c686f46365c08b8c8b0d28
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
u_data_hsuart: Use correct name for the debug entry

As this driver communicates over HSUART transport medium
to QSC modem, change the name to hsuart.

Change-Id: I349ef14450ac6b9369dc4183d95fa7e966fc43b9
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
msm: Kconfig: Select ENABLE_HOLES_IN_ZONE for 7x30

Current configurations end up with holes in the middle of
the highmem zone. The vm system makes certain assumptions
about the lack of holes within a zone. Failure to account
for these holes can lead to crashes due to accessing
uninitialized page structures. Select ENABLE_HOLES_IN_ZONE
to ensure these holes are properly accounted for.

CRs-Fixed: 370223
Change-Id: Ie6588fb8430cf3f04b6e7efdf0c4314b526dc873
Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
defconfig: Enable crypto drivers

Enable QCE50 kernel driver module for copper

Change-Id: I5d24e0a1310ef866deb3316afaa72dc7a13eb004
Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
msm7x27a: Enable SLUB allocator on 7627a and 8x25.

Use SLUB allocator for better memory management.

Change-Id: I02c149db225afac3403156e1d0b355c2bba9d111
Signed-off-by: Prachee Ramsinghani <pracheer@codeaurora.org>
board-8960: Add power configuration for touch

Add power configuration paramaters for Cypress
touch controller to enable low power mode.

Change-Id: I86476b4aa9783f52b7dcab89a6629a1a18562636
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
msm: Add preliminary support for MSM8960AB

Update the call sites of cpu_is_msm8960() to include an
additional check for the MSM8960AB target where
appropriate.

Change-Id: I54b1b9dccde2f21ada27bc64df02c2cb313ff1d1
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
msm: socinfo: Support additional SoC IDs for 8930AA

Include support for additional SoC IDs that are used to
identify the MSM8930AA target.

Change-Id: I840430baf6f91a282d6104181d5df5bd1c30cd3a
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
msm_fb: display: Configure DMA before Layer Mixer for writeback mode switch

DMA addresses are configured after Layer Mixer is set to writeback mode.
This leads to IOMMU page faults due to incorrect addresses read from DMA.
Hence DMA is programmed before Mixer setting.

Change-Id: I4c5e41a56f05e3fabb46b4cadde03168589eeb17
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
msm: display: Set MDP revision as 4.4 for MSM8960AB

For MSM8960AB, MDP revision is 4.4 and the same is set during
display parameter setting at reserve() call.

Change-Id: Ib34fe005f2143229fdbe648db253a7217138fdb6
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>