OMAPFB: Do not suspend on FB BLANK, instead disable panel

We do not have state notifiers on panel suspend/resume, so Android is
not notified if display is suspended in FB BLANK.  Panels should only
suspend as part of a system wide suspend, where early suspend handlers
are called.

Luckily panel suspend and panel disable methods are identical.

Change-Id: Ifc93ffff8cd794736175622bf63e80266f55ec8d
Signed-off-by: Lajos Molnar <lajos@ti.com>
OMAPDSS: DSS: Complete callbacks on mgr->blank if not wait_for_go

Disabled panels do not clear GO automatically, therefore, we
assume no wait_for_go on disabled panels.

When not waiting for GO, complete all pending composition
callbacks regardless of dirty state, as dirty state will not
be propagated.

Change-Id: Ic5ddd81414bab56d136a716907fd8e6dfa0f795f
Signed-off-by: Lajos Molnar <lajos@ti.com>
OMAPDSS: DSS: Fix wait_for_go support on mgr->blank() for manual update panels

Manual update panels do not clear GO automatically.  For these panels we need
to call update so that GO gets cleared.

Change-Id: Idb446af8c77553cec8baf7af893d180cfbaa7582
Signed-off-by: Lajos Molnar <lajos@ti.com>
Regulator: tps6130x: Add support for TI tps6130x regulator

Add initial support for TI tps6130x family. TPS6130x can
operate as a standard boost regulator, output voltage range
is 3.825-5.700V. Current source support is not added in this
initial version.

Ported from p-android-omap-2.6.35

Change-Id: I28c9ba1d87652b1269ab23da9e2609fb993b4460
Signed-off-by: Girish S G <girishsg@ti.com>
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Signed-off-by: Akash Choudhari <akashc@ti.com>
Signed-off-by: Gabriel M. Beddingfield <gabrbedd@ti.com>
ASoC: TWL6040: Configure Phoenix Audio at 88.2 only for 88.2 kHz

As with new release of ABE firmware the ABE is supporting 44.1kHz
we need to set Phoenix Audio clock to 96 kHz. Today this setting
is not well computed by the driver as it is associated to the
sample frequency

Change-Id: I46f432574f90140809c0ac0b2f393d386cbdb01b
Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
Signed-off-by: Chris Kelly <c-kelly@ti.com>
Add initial gc-core driver files.

Initial driver files to enable Vivante Corp 2/3D gcxxx hardware.
Only basic 2D operations have been tested so far.

Change-Id: I656e6752f576c4e70a127060a29b965624e15ae8
Signed-off-by: Alexei Shlychkov <ashlychkov@vivantecorp.com>
Signed-off-by: David Sin <davidsin@ti.com>
Add gc-core build files

Change-Id: I56a8e036dc0fa404b566d72cc7653c1acd2ffcf5
Signed-off-by: David Sin <davidsin@ti.com>
[Vibrator] Add twl6040 vibrator driver

Adding twl6040 Android vibrator driver.

Change-Id: I2a01bdf2a1fd5e53854173ac042a909100c175d0
Signed-off-by: Dan Murphy <dmurphy@ti.com>

Conflicts:
	drivers/misc/Kconfig
	drivers/misc/Makefile
Include gc-core into omap build system.

Change-Id: I815cb837e9b45c3077a2e7c10347dc551efce1a1
Signed-off-by: David Sin <davidsin@ti.com>

Conflicts:
	drivers/misc/Kconfig
mfd: twl6040: Add power-up time define

TWL6040 MFD has a power-up time of 16ms. In terms of TWL6040 hardware,
it represents the transition between Sleep -> Power-On states.

Change-Id: I1510bfa67fa512cb8d274579f1b4502bed303ab6
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
ASoC: McPDM: Remove extra CTRL register clear

Reset value of MCPDM_CTRL is 0, so there is no need to do an
extra clear write during McPDM DAIs probe(). One important
advantage of removing this extra register access is that it
removes the dependency on the McPDM clock which is supplied
externally.

Change-Id: I8bcad0494cc389523172b0f9ae5834e0f0f96326
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
OMAP4: HDMI: HACK: Set c-sate constraint for HDMI

This is a temporary HACK and needs to be rootcaused and fixed.

Set PM c-state constraints when HDMI is connected so that
core doesn't hit below C2. This will keep the system from locking
up when HDMI is connected.

Change-Id: I341922f3d890b416a78fe6a5aabf0860c6b212ea
Signed-off-by: Srinivas Pulukuru <srinivas.pulukuru@ti.com>
ASoC: OMAP4 ABE: Add CONFIG_SND_OMAP4_ABE_USE_ALT_FW

This enables a build to load the alternate ABE Firmware.

Change-Id: I5772616c576234845d0e839067d5b85f232f12be
Signed-off-by: Gabriel M. Beddingfield <gabrbedd@ti.com>
ASoC: SDP4430: Add pre/post ops for McPDM UL DAI link

McPDM uplink requires pre and post operations to ensure its
prerequirements (mostly FCLK provided by TWL6040) is in place
at the time the McPDM interface is started.

Change-Id: I383860c67f10481f02036bf745a589ff8bebaaaa
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
ASoC: OMAP4 ABE: Allow an alternate ABE firmware to be used.

On commit 52c46046 the ABE firmware was updated with a version that
included several improvements, but also disabled the digital
microphone (DMIC) feature.  In order to support DMIC on devices like
the Blaze, an alternate firmware (and matching code) must be
configured.

This commit allows an alternate firmware using
CONFIG_SND_OMAP4_ABE_USE_ALT_FW.

Change-Id: I2fd4aa8d03be802722dca973a71435b9965e80ea
Signed-off-by: Gabriel M. Beddingfield <gabrbedd@ti.com>
OMAP:ABE: Fix schedule tablet formatting

Fixed the formatting of the code when the MultiFrame is set to 0

change
= 0/*...*/;
to
= 0; /*...*/

No operational changes are made to this file

Change-Id: I6b49e0f66f2fad16e540968c6ca926e450c60bf5
Signed-off-by: Dan Murphy <dmurphy@ti.com>
ASoC: ABE: update to ABE firmware 09.51.

New features:
- SRC 44.1 to 48 for MM_DL port (CBPr or Ping/Pong)
- Split monitoring of ABE filters saturation
- Table for filter saturation 8 or 16 kHz

Change-Id: I469a477612d4c927516e2bc96ea07d672bfcf3e0
Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
Signed-off-by: Chris Kelly <c-kelly@ti.com>
Signed-off-by: Barry Woodward <b-woodward@ti.com>
Signed-off-by: Gabriel M. Beddingfield <gabrbedd@ti.com>
mfd: Fix twl4030 dependencies for audio codec

commit f09ee0451a44a4e913a7c3cec3805508f7de6c54 upstream.

The codec for Devkit8000 (TWL4030)  was not detected except
when build with CONFIG_SND_SOC_ALL_CODECS.

twl-core.c still uses the CONFIG_TWL4030_CODEC for
twl_has_codec().

In commit 57fe7251f5bfc4332f24479376de48a1e8ca6211
the CONFIG_TWL4030_CODEC was renamed
into CONFIG_MFD_TWL4030_AUDIO, thatswhy the codec
was not detected.

This patch renames the CONFIG_ TWL4030_CODEC into
CONFIG_MFD_TWL4030_AUDIO in twl-core.c.

Signed-off-by: Thomas Weber <weber@corscience.de>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Cc: Jarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
misc: twl6040-vib: Voltage raise speed made configurable in Board support file

Add support to dynamically configure the voltage raise speed for the vibrator.

Change-Id: I443dd7e614838327aac9fb0d83c19ed9c5d9e092
Signed-off-by: Dan Murphy <dmurphy@ti.com>
misc: twl6040-vib: Power the vibrator up/down as needed

The vibrator was being powered up at the probe stage, and then never
released to power down.  This patch powers the vibrator up/down only
when it is being used.

To reduce power cycles and improve haptic latency, the twl6040 is held
on for 5 seconds after the last use.

Change-Id: I923bcb993326b3df05976bf9c6ca055fa0181698
Signed-off-by: Gabriel M. Beddingfield <gabrbedd@ti.com>
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>