mogami: Cleanup memory allocations

* Remove EBI0. Saves 6MB
* Remove deprecated pmem configuration
* Rename CAMERA heap to MM heap

Change-Id: Id2bc3ccc3a173f620c7c5429848199d60469f07e
mogami: Readd mogami_temp_fixups()

* Fixes cy8ctma300 touchscreen. We really need to update these drivers sometime...

Change-Id: I8a3fc43c32696c6ceddd12abeec3ac117599a61e
mogami: Yet another SD change from stock kernel

Change-Id: I61804e920d4985e82502711d27997a5bd318985b
defconfigs: Enable OVERLAY0_WRITEBACK

Change-Id: I716866816661bbb8ab9333a04bcc765830406a04
mogami: Save some RAM on MDPI devices

* Decrease memory allocation on devices with MDPI panels

Change-Id: If9e2397f1c94becf647947d7454ad22cb7a01d49
defconfigs: Enable FB_MSM_HDPI on selected devices

Change-Id: Ie1e2d2e8008c2661d232bf3285306571cdea84a6
Import SEMC camera drivers from 4.1.B.1.13

* Stripped down to the essential drivers only
* Moved to drivers/media/video/msm_semc to avoid conflict with other devices or upstream

Change-Id: I6edf593247f651e3c99b8cd0cbff79f31ce2fd28
Import camera header changes from 4.1.B.1.13

Change-Id: Ie5c4c4413029b2dda376dd8d588e90b7aef13b81
drivers/media/video: Fix makefiles for SEMC camera

Change-Id: Ic6a33ff19d010d6f6572325f1379e69fd49813d2
Fixup camera sensor drivers for 3.4 kernel

Change-Id: Iee0e05ed56891a30bff575c762d9bfe36d6198f4
Fixup camera drivers for kernel 3.4

Change-Id: I09d76646f91fba50610949e8bd5452e09a2887f9
msm: camera: Fix the broken MCE functionality

Corrected the offset values for MCE registers

Change-Id: I41c5baaf90b294506234c1e69b919c5283abef59
CRs-Fixed: 278920
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
Signed-off-by: nobodyAtall <tsogkas@ceid.upatras.gr>
msm: jpeg: Reset buffer status when output buffer queue is empty

Reset buffer status for output buffer obtained from encoder
when output buffer is empty

Signed-off-by: Srinivasan Kannan <srinkann@codeaurora.org>
(cherry picked from commit ccc917d272380c341c7462d081087b6ad18bed26)

Change-Id: Icc7ca9cf75d93e132d205234e3e88e8ea0e82cc6
Signed-off-by: Shruthi Krishna <skrish@codeaurora.org>
Signed-off-by: nobodyAtall <tsogkas@ceid.upatras.gr>

Conflicts:
	drivers/media/video/msm/msm_gemini_sync.c
msm: camera: Handle event queue overflow error

When the config thread crashes or is in bad state, the camera
driver wont get notification which prevents the driver from
shutting down. Added code to handle this usecase.

Signed-off-by: Sunid Wilson <sunidw@codeaurora.org>
(cherry picked from commit 4882c1fdffba47564665ef483bf5fbcd73c23484)

Change-Id: I643f5ac740627e140ba65b662558258f6c1f2c2b
Signed-off-by: Shruthi Krishna <skrish@codeaurora.org>
Signed-off-by: nobodyAtall <tsogkas@ceid.upatras.gr>

Conflicts:
	drivers/media/video/msm/msm_camera.c
msm: camera: Remove additional check in msm_queue_drain

Removed additional check in msm_queue_drain to make
sure that the list is getting emptied in all cases.

Signed-off-by: Sunid Wilson <sunidw@codeaurora.org>
(cherry picked from commit 33e638a1c229765d06a76bc84351de9407026782)

Change-Id: I6b498241490c4264f93ea37b1fa97ebda4cde910
Signed-off-by: Raj Kushwaha <rajk@codeaurora.org>
Signed-off-by: nobodyAtall <tsogkas@ceid.upatras.gr>
msm: camera: Free buffers from frame queue at open

Free all pending frames in frame queue before cam_frame
thread opens frame device to avoid duplication of buffer
free

CRs-Fixed: 318202
Change-Id: I25d1718a37a94fa83563c4b6e99a1b7560917a7f
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
(cherry picked from commit 5dcbcb9f04a94aa6740718a1b6d39ce4548d869c)

Signed-off-by: nobodyAtall <tsogkas@ceid.upatras.gr>
msm_camera: fix msm_open_common build error

Change-Id: I4029898af0f44ffb3691a7c6979c3f5341152ef2
msm: gemini: Fix gemini freeze issue if output size estimation is improper

Update the pong address to fix gemini freeze issue when output size
estimation is improper.

Change-Id: Ief02e8b326e350d21af5c777cf411a6ceb033bd8
Signed-off-by: Sunid Wilson <sunidw@codeaurora.org>
Signed-off-by: nobodyAtall <tsogkas@ceid.upatras.gr>

Conflicts:
	drivers/media/video/msm/msm_gemini_core.h
msm: Camera: clear control queue

Clear control queue everytime before entering wait in msm_control as
there might be invalid payloads in the queue and this can lead to
not waiting at all and exit before the valid command completes.

Change-Id: Iee83bc51e0c3568f73c1f900d72df41c63a3ace6
Signed-off-by: Manogna Reddy Alle <cmalle@codeaurora.org>
(cherry picked from commit 008ccc5b4e2b7e05d1dd4d6054c31828ef29d17f)
Signed-off-by: Gopal G Goberu <ggober@codeaurora.org>

Signed-off-by: nobodyAtall <tsogkas@ceid.upatras.gr>
msm: camera: Assign Null to unmapped addresses

Observed unhandled virtual addresses with all the camera drivers
while performing reads and writes to the ioremap addresses in different
scenarios, Hence assigining NULL to all the hardware remapped addresses
immediately after the iounmap calls

Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
(cherry picked from commit 72ee044121488cc9f4cde91c5e3a2b820d7a0fad)

Change-Id: Ia0a74ca35e8575b18da8350cb6de83752ee0b11b
Signed-off-by: Shruthi Krishna <skrish@codeaurora.org>
Signed-off-by: nobodyAtall <tsogkas@ceid.upatras.gr>