OMAP4: ST: Disabling UART if ldisc not installed.

OMAP4: ST: Disabling UART if ldisc not installed.

In cases when there is no line discipline to be installed UART chip must be
disabled.

Rationale: if ldisc is not installed so it can't be uninstalled.
Thus UART chip still enabled and we have wakelock for it
(see plat_uart_enable() function in both blaze and 44xx-tablet board files).
In that case we can't go in suspend mode.

Motivation: when using busybox ramdisk (e.g. for testing kernel w/o AFS) we
have no ldisc that causes impossibility to go to suspend mode.

Change-Id: I6fac0b9411ed765e8e598328b89a41a50b5fbfea
Signed-off-by: Semen Protsenko <semen.protsenko@ti.com>
update L9 displays
ASoC: SDP4430: Fix-up DMIC channels

DMic DAI driver only supports 2 channels in the ABE mode, hence hw_params
fixup is required for DMic BEs to decouple it from FE's channel count.

Change-Id: I785fab42673f6eb7a6649ef80843a7de3a785688
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
ASoC: OMAP ABE: Remove extra OPP100 transition

There is no need of doing a OPP100 transition when AESS stream
is open, required OPP is calculated based on the active audio
routes.

Change-Id: I178058827c448aa6d300724a2baeb5f44ac9a690
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>

Conflicts:

	sound/soc/omap/omap-abe-dsp.c
ASoC: OMAP ABE: Fix MM_UL format capability

MM_UL port supports up to 6 channels, 32-bits per sample, 16-bits
per sample is no longer supported hence removed from DAI capabilities.

Change-Id: I1c9940609e5f087f5df83b9a8c6261d2306512dd
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
ASoC: twl6040: VDDHF as SUPPLY widget

VDDHF external boost supply was being enabled after and disabled before
handsfree driver as a strategy for pop noise reduction. This strategy
makes handsfree driver very susceptible to overcurrent events, so the
boost supply is converted to a SUPPLY widget to enable it before and
disable it after handsfree path.

Change-Id: I608b4b0f5cb3301053869ccd2732434efe276b81
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>

Conflicts:

	sound/soc/codecs/twl6040.c
OMAP4: SDP44xx: Fix twl604x GPO used for tsp6130x NRESET

TPS6130x NRESET line is controlled by TWL604x GPO, but TWL604x's GPO
capabilities have changed and only a single GPO is supported in TWL6041.
This affects how TPS6130x reset is controlled:
- Processor boards using TWL6040 use GPO2
- Processor boards using TWL6041 use GPO (single GPO available)

Change-Id: I6a65be069aaf4f0dbe0f5c7da1660579c8956057
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
OMAP4: Tablet: Fix twl604x GPO used for tsp6130x NRESET

TPS6130x NRESET line is controlled by TWL604x GPO, but TWL604x's GPO
capabilities have changed and only a single GPO is supported in TWL6041.
This affects how TPS6130x reset is controlled:
- Processor boards using TWL6040 use GPO2
- Processor boards using TWL6041 use GPO (single GPO available)

Change-Id: I92d41f84dfad003dac66ab3e51b842944bcc16a0
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
ASoC: TWL6040: Adding Aux audio output

Adding switch controls to enable/disable audio output
throught Aux pins in codec.

Change-Id: I329c44fe95a9157d56017ac47cb4e091e87d8710
Signed-off-by: Israel Cepeda <icepeda@ti.com>
MFD: twl6040-codec: Refactor power-on verification

Refactor power-on verification which consists of checking NCPCTL,
LDOCTL and LPPLLCTL registers against expected values of successful
automatic power-up sequences.

Change-Id: I20c0693922baa6700a117881c47cbf400716446b
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
MFD: twl6040-codec: Change power-up verification policy

Automatic power-up completion result can be affected by race
conditions between the completion task itself and the READYINT
handler, leading to false power-up failures as the completion
timeout may expire before READYINT handler gets executed and
marks completion.

Instead, the first verification for a successful power-up sequence
is the expected state of NCPCTL, LDOCTL and LPPLLCTL registers.
These registers will have specific values after automatic power-up
sequence has completed.

False power-up success is still checked, this is the case where
the READYINT is received but the hardware state is not consistent
with what is known/expected after a successful sequence. Under these
circumstances, we retry automatic power-up.

Change-Id: I9f85d67a10e84564a38f7d97a78345be06ac3b16
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
ASoC: OMAP PCM: Remove combined ABE/HDMI constraint

Remove buffer bytes constraint used for ABE and HDMI in favor of
individual, separate constraints applied by each driver.

Change-Id: Ic1b0aefff6504159f36eb701b91e5e3e7c78d688
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
ALSA: pcm: export 'snd_interval_step' symbol

Export 'snd_interval_step' symbol so that ALSA drivers can use it
to add hw rules.

Change-Id: Ic7d38683a46d281db9b1a36a5d5eabdb92876153
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
ASoC: ABE: Add hw_rule for 250us period constraint

Audio Backend requires period time in steps of 250us.

Change-Id: I9df1893ec557d883d435d77d24e019a054272c11
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
ASoC: sdp4430: Use internal clock for DMic legacy

Configure DMic Legacy DAI to use OMAP_DMIC_SYSCLK_MUX_CLKS
as FCLK.

When using OMAP_DMIC_SYSCLK_PAD_CLKS (provided by TWL6040)
as an external FCLK, ABE_ICLK2 gets gated just before the
start of the information exchange between DMic and the host,
which causes the DMic FIFO to get full before data gets
consumed. Using OMAP_DMIC_SYSCLK_MUX_CLKS prevents this
behavior.

Change-Id: Iccda2327a5379e200f877b46c9497060c10668a8
Signed-off-by: Axel Castaneda Gonzalez <x0055901@ti.com>
OMAP4: EMIF: unify access to EMIF_PWR_MGMT_CTRL.REG_LP_MODE

Use set_lp_mode for changing EMIF_PWR_MGMT_CTRL.REG_LP_MODE.

Change-Id: Ia6410f97c8937faee6fbfc335d5d1158de41583b
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
gcx: fixed color conversion table.

Change-Id: I9f0c8ed5f6a341ca8d6a2460a1b5225d78a505e4
Signed-off-by: Alexei Shlychkov <shlychkov@gmail.com>
gcx: add virtual gcx platform driver for versioning

Change-Id: Ib3895a4d01c5e38137ec89397633787369349e89
Signed-off-by: Craig Stout <craig.stout@ti.com>

Conflicts:

	drivers/misc/gcx/gcioctl/gcif.c
	drivers/misc/gcx/gcioctl/version.h
gcx: fixed error handling.

Change-Id: I4e38c35b51fbff71f2f9070e67478ebb726c3c4a
Signed-off-by: Alexei Shlychkov <shlychkov@gmail.com>
omap2plus: cpufreq: Modify lpj recalculation logic

Somethimes "mdelay" function provide delay
that several times shorter than it should be.

This happens because recalculating lpj
performed after switching OPP. In this case,
for short period of time, when OPP on MPU
was switched but lpj was not recalculated,
"udelay" function can provide incorrect
delay - upto 5 times shorter
(if OPP was switched from lowest to highest).

This patch changes lpj recalculation logic to:
if OPP will be switched to higher - recalculate lpj before switching OPP,
if OPP will be switched to lower - recalculate lpj after switching OPP.

Change-Id: I3258e756c471fd0258a849d712ab00f4e1279ea9
Signed-off-by: Sergii Postulga <x0153364@ti.com>