video: msm: Add user-defined backlight scaling

Add method for scaling backlight based off of a user provided ratio and
minimum level for the scaling to be applied.

Change-Id: I494bdd4545e9e02602faa01bed820120cd96298f
Signed-off-by: Carl Vanderlip <carlv@codeaurora.org>
(cherry picked from commit f0fd8e7323ea0f60539918528a4cfa1edb39b828)
cy8c_ts: Set input property bit to indicate a direct input device

Prop bit is checked in userspace and must be set in
driver in order to be recognized correctly, since it defaults
to mouse pointer.

Change-Id: Ifbd7ffe6633860ab3858cf2b3465d593724c5c64
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
Signed-off-by: Channagoud Kadabi <ckadabi@codeaurora.org>
msm: compilation fixes for gcc 4.6

These changes are required to compile successfully with
gcc version 4.6

Change-Id: Iedfde0c9d45c973588c17773508758773e5d4fab
Signed-off-by: Channagoud Kadabi <ckadabi@codeaurora.org>
Merge "cy8c_ts: Set input property bit to indicate a direct input device" into jb_chocolate
Merge "msm: compilation fixes for gcc 4.6" into jb_chocolate
Merge "video: msm: Add user-defined backlight scaling" into jb_chocolate
msm: camera: Port camera v4l2 architecture to 8x60

Add V4L2 version files for vfe31 files for use in
V4L2 8x60 solution. Also, add option to use
correct platform devices for 8x60 if V4L2 flag is turned
on.

Change-Id: Ia209c2648122c13e3b4e14d4f93dae7f45f5492e
Signed-off-by: Roja Rani Yarubandi <rojay@codeaurora.org>
msm: fix vfe stop sequence.

Fix sequence of register writes during vfe stop. The interrupts
need to be disabled before CAMIF is stopped and AXI
needs to be halted. This ensures that there are no spurious
interrupts.

Change-Id: I3a6813d6cdd2f722fd72b3654fd66fe9721310c8
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
Signed-off-by: Roja Rani Yarubandi <rojay@codeaurora.org>
video: msm: wfd: Send signal HDMI observer to mirror on  FB2.

 - Send KOBJ_ONLINE, KOBJ_OFFLINE events to HDMI observer
   to mirror on  FB2.

This reverts commit 4102d704243cf0ff297cdbe8d5b731da4c0bb9d5.

Change-Id: Ie5f0c4528ee43edf5ff8145520723a8095c0f542
Signed-off-by: Srinu Gorle <sgorle@codeaurora.org>
video: msm: wfd: Delay fill_buffer until START_DONE

VCD requires we do not give any output buffers to be given until
START_DONE is received. In the case that buffers are given, it
introduces race conditions in the vidc with respect to the SPS/PPS
buffer, which vidc assumes to be present on the first fill_buffer but
actually isn't present until START_DONE.

Change-Id: Ie4dec3ed41e0f248175fb7d9719b458d3b699539
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
msm: fix mount angle for preview in external sensor.

The mount angle for external imx sensor should be
180 degrees.

Change-Id: I7198a3f1dfc308ffe714f22c9c7887b7a4801fef
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
Signed-off-by: Roja Rani Yarubandi <rojay@codeaurora.org>
mach: increase camera heap size to 66 MB

In order to support full size ZSL feature on 8960, we need a
total of 120 MB. This change increases the camera EBI heap size
to 66 MB, which combined with 54MB from SMI gives us
120MB of carved out memory.

Change-Id: Id0e3adb7cae4f209d061328526ecc7143371fcfe
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
Signed-off-by: Roja Rani Yarubandi <rojay@codeaurora.org>
msm: camera: MT9E013 v4l2 sensor driver.

This request adds board file configuration, clock configuration,
regulator setting and sensor register setting to enable MT9E013
sensor on v4l2 architecture for 8x60

Change-Id: Iefaca630815d76a5815c28052d8249dea9f06c4f
Signed-off-by: Sreesudhan Ramakrish Ramkumar <srramku@codeaurora.org>
Signed-off-by: Roja Rani Yarubandi <rojay@codeaurora.org>
msm: fix for HDR with vfe31.

On vfe31, we don't get update ack irqs for the frames that are
going to be dropped via the frame skip module. Hence, the snapshot
count decrement logic needs to move to the SOF irq handler to
maintain sanity when taking multiple snapshots in HDR.

Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
(cherry picked from commit 227ff128d23fc0f509801562637500744ec03d3b)

Change-Id: Ifd87fbdf046fd633a59e908dfe363dc3f0e6e270
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
Signed-off-by: Roja Rani Yarubandi <rojay@codeaurora.org>
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
msm: camera: OV7692 v4l2 sensor driver.

Add board file configuration, clock configuration, regulator
setting and sensor register setting to enable OV7692 v4l2
sensor driver

CRs-fixed: 351530
Change-Id: Iff3d65cd388c48491391853e71fce2817f3b8c6b
Signed-off-by: Sreesudhan Ramakrish Ramkumar <srramku@codeaurora.org>
Signed-off-by: Roja Rani Yarubandi <rojay@codeaurora.org>
msm: compile v4l2 files for 8x60.

Change-Id: I9484318bdca498186ebcccb34be222c42f7a947b
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
(cherry picked from commit 872130ed749c3109d15d32b31c7b11b85c97cb31)

Signed-off-by: Roja Rani Yarubandi <rojay@codeaurora.org>
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
msm: Use immediate operations instead of PC-relative loads

Use immediate operations for creating constants in
__enable_mmu to avoid a situation where the constant area
may not have been fully mapped by the initial identity
mapping.

CRs-Fixed: 375963
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
(cherry picked from commit c00dfe2cd0edb8d891261e7c3f24a50ccd233d17)

Change-Id: Ia607d5580f5ad9b26aff40ad4ff6f3a8f821283c
Signed-off-by: Shruthi Krishna <skrish@codeaurora.org>
msm: idle-v7: Write Krait-specific bits before WFI

Certain variants of the Krait processor require a
modification of an implementation-defined register prior to
executing the WFI instruction.

Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
(cherry picked from commit ae920e776de8271232a524031f07e9fd605b5b30)

Change-Id: Id9b26685db9a9a8a59fd1ca425c3dd57970a97ff
Signed-off-by: Shruthi Krishna <skrish@codeaurora.org>
arm: Make the WFE macro unconditional

Remove the condition argument from the WFE macro in the
spinlock code so it can support a WFE fixup needed on
certain Krait CPUs.

Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
(cherry picked from commit 470d134db676e23982676061971a3a201f32b4a6)

Change-Id: Ic5f072ed40d3802b4d0d7f3339d2f5688cebc828
Signed-off-by: Shruthi Krishna <skrish@codeaurora.org>
arm: Convert spinlocks to new inline assembly style

Refactor the inline assembly code in spinlock.h in
preparation for supporting the Krait safe WFE sequence.

Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
(cherry picked from commit 68e1d7476e66911f9722a5dd82554e883cdb35ba)

Change-Id: I9f98c3a01fa1f0565723e7ba8e5a842a8f05e6b9
Signed-off-by: Shruthi Krishna <skrish@codeaurora.org>