gcx: make gccmdthread interruptible to avoid false hung task detection.

Change-Id: Ie8e107090e2b83f77bde44e74b0054b2ae093a1c
Signed-off-by: Craig Stout <craig.stout@ti.com>
gcx: fix race conditions on suspend.

There was a race between the suspend thread waiting for idle and an
app thread attempting to push more into the gcqueue, which could
cause the suspend to block until the max retry count was reached.
Also, it was possible for the gccmdthread to notice gc320 is idle
while attempting to suspend and simultanesouly gc320 completed
processing some cmd buffers that require proper interrupt-aware
cleanup.

Change-Id: Ia7fdb29c5e2936d07b4c7ce58638b57c1f10c955
Signed-off-by: Craig Stout <craig.stout@ti.com>
OMAPDSS: implementation of MEM2MEM mode with blanked pannel.

This change implements MEM2MEM mode for pannels blanked case.

Change-Id: Ic030682e7aaa33dd596d5150da23ab9dc1fc20f7
Signed-off-by: Artem Rudenko <artemrudenko@ti.com>
OMAPDSS: DSSCOMP: support of MEM2MEM mode with blanked pannel

This change implements MEM2MEM mode for pannels blanked case.

Change-Id: Ia1e0034c73f196d877283e5ecc974f277988265e
Signed-off-by: Artem Rudenko <artemrudenko@ti.com>
OMAPDSS: panel tc358765 initialization delay after power-on

This change adds delay for 100ms between powering on of display
panel tc358765 and its initialization. This delay is needed,
because time to time registers of the panel may be not initialized
directly after power-on. The value for delay was found
experimentally. Delay in tc358765_hw_reset() function (100ms) also
plays role.

Change-Id: I889a498787490adb004d0324a44fa44047278f6a
Signed-off-by: Mykhailo Denysiuk <x0172934@ti.com>
USB: OHCI: do not poll root hub status if HC is not running

If the OHCI root hub is suspended the clocks may be
not provided to HW and we get errors on OHCI registers
access. So do not poll it in such cases (like is done
for EHCI)

Change-Id: Ic81833a87c479822fe3c7f23792ee7ac7154e248
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
OMAP4: battery: capacity detection.

Capacity could be detected when it is not charging.
If charge status set to POWER_SUPPLY_STATUS_NOT_CHARGING
capacity detection path is omitted.

Add this state to let capacity detection happen.

Change-Id: I34a8295470457423d25cc2ec42e2498682339dcc
Signed-off-by: Oleksandr Kozaruk <oleksandr.kozaruk@ti.com>
ASoC: ABE: Increase volume ramps for DMic's

Most digital microphones need about 10 ms to settle after setting bias
and clocks.  The OMAP DMic module is not able to set the clocks before
beginning the transfer, creating a full-scale pop at the beginning of
the transfer.

This patch works around this behavior by increasing the volume ramp
from 2ms to 50ms for DMic's.

Change-Id: I55fe727fb624965ad22c0f9087c8b426b18080ef
Signed-off-by: Gabriel M. Beddingfield <gabrbedd@ti.com>
ARM: OMAP4: Tablet: Add new board revision

Adding new (2158-004) board revision for Tablet2.

Change-Id: I9e3c914f8c79d8b29cd1ebb76509210ecccb33e2
Signed-off-by: Volodymyr Riazantsev <v.riazantsev@ti.com>
OMAPDSS: DSSCOMP: Add GPL license information

GPL license information was missing in gralloc.c

Change-Id: I9da3b0cc8a4ad28439483bdc6fdc19587d1ad200
Signed-off-by: Victor Kleinik <x0150886@ti.com>
gcx: split in several files by function.

Also added GC_SHOW_TIME switch.

Change-Id: I8ee648d4bd21147402f9fd2d1848578ef266be3c
Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
gcx: added scaling support.

Includes support for nv12 source.

Change-Id: I218d59fecb75bcae1a924a925cc4aa3cce666c6c
Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
gcx: fix mmu context switch issues.

On an mmu context switch, an mmu flush is required.

When the mmu is enabled after a power off, the mmu context
at the head of the cmd buffer queue is made current but the
cached current context was not updated so the next process
to try a commit would throw an l3 bus error.

Change-Id: I21414576c574d5cdeebd917f5b02d8d1e4ce3115
Signed-off-by: Craig Stout <craig.stout@ti.com>
gcx: fixed pulse skipping init bug.

Change-Id: I20e3091df86cdcea10559f181a01d3959a323443
Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
gcx: validate dest rect after clipping

According to bltsville spec, rectangles should not be checked
for validity until clipping has been applied.  So we must clip
the dest rect before validating it.  Removed the error checking
from the generic rect converter macro.  Added error checking
specifically for clip rect and dest rect, post clipping. Proper
validity checking of other rects is TBD.

Change-Id: I13854c150b2549fd5a91895c7d594d00045affec
Signed-off-by: Craig Stout <craig.stout@ti.com>
gcx: adjust cache rect based on orientation

Change-Id: I542f015e7ce79098143057f21ffb2b8341e03c86
Signed-off-by: Jack Yen <jyen@ti.com>
gcx: update version to 2.2.

Change-Id: I6adb0ebb2a5a74ba90a1c7e56a3db97668d2f1f5
Signed-off-by: Craig Stout <craig.stout@ti.com>
gcx: change uvshift for NV12 rotation to work properly

90/270 degree rotation is fixed by adjusting the uv plane
address to get the proper uvplane starting address after the
rotation.

Change-Id: If4068d2866c00ca34c30137a417ca4b8faa9aefd
Signed-off-by: Jack Yen <jyen@ti.com>
gcx: added gcpwr_get_speed function and cur_freq debugfs entry.

Determines the current speed of GC320 in megahertz.

Change-Id: Ia1b17d4ac1fa4df403fc6c4bebdc574e39419ee0
Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
gcx: added generic format parser.

RGB and YUV formats are now generically supported.

Change-Id: Ife091091ffb538cdc449385060d3919d7375e267
Signed-off-by: Alexei Shlychkov <x0177296@ti.com>