ti_fragments: audio_display: Enable DRM features by default

Enabling DRM features as built-in instead of modular.

Some HLOS expects these drivers to be built-in.

Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com>
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Signed-off-by: Darren Etheridge <detheridge@ti.com>
ti_fragments: audio_display: Enable OMAP DSS driver

Enable OMAP DSS driver. This is needed for DRA7x display.

DRA7x HLOS display needs these drivers to be built-in.

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com>
Signed-off-by: Darren Etheridge <detheridge@ti.com>
media: ti-vpfe: driver restructuring to fix a kernel panic

While using 'yavta' the system team uncovered an issue with the way
the vpfe driver was handling it's mutex causing a deadlock.
Also as part of the upstream effort some of the review comment
suggested making uses of now available vb2 and v4l2 helper functions
to basically handle the locking mechanism.

Consequently the driver has been substancially cleaned up.
The exported/visible API have not changed.
This a cleaner more upstreamable version of vpfe capture driver.

Signed-off-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Darren Etheridge <detheridge@ti.com>
OMAPDSS: panel-tlc59108: fix error handling

If the panel driver fails to read from the TLC59108, its probe returns
an error without releasing the reference to omapdss.

Fix the error handling so that the reference is released.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Darren Etheridge <detheridge@ti.com>
ARM: dts: dra72-evm: move hpd_pin mux to correct place

The HPD pin is handled by the tpd12s015 level shifter. Move the hpd
pinctrl from dss to tpd12s015.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Darren Etheridge <detheridge@ti.com>
ARM: dts: dra7-evm: move hpd_pin mux to correct place

The HPD pin is handled by the tpd12s015 level shifter. Move the hpd
pinctrl from dss to tpd12s015.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Darren Etheridge <detheridge@ti.com>
ASoC: edma-pcm: Increase period_bytes_min from 32 to 512

32 byte period size is ridiculously small and there hardly any
practical use for it. 512 byte period size appears to work OK even
when the system is loaded.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Darren Etheridge <detheridge@ti.com>
drm/omap/fb: disable console switching during pm operations

The default behavior of consoles during power management operations is:
On entry to suspend a new console is allocated and switched to. On
resume the original console is restored.

However this isn't the observed behavior and the original console is not
restored. This commit avoids the problem by disabling the switching of
consoles at suspend/resume. This works because the driver already
restores all necessary hardware context during such pm operations.

Signed-off-by: Darren Etheridge <detheridge@ti.com>
ARM: DTS: dra7: add syscon reference to dispc node

On DRA7, DISPC needs to access CTRL_CORE_SMA_SW_1 register in the
control module. So add syscon reference to the control module.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Darren Etheridge <detheridge@ti.com>
OMAPDSS: DISPC: program dispc polarities to control module

On DRA7, DISPC needs to write output signal polarities not only to a
DISPC register, like for all earlier DSS versions, but to control
module's CTRL_CORE_SMA_SW_1 register.

This patch adds support to write the polarities to control module.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Darren Etheridge <detheridge@ti.com>
ARM: DRA7: hwmod: add DMM hwmod description

Add hwmod entries for dmm ip block that is present in both DRA74x and DRA72x.

This removes the message:

[    0.346624] platform 4e000000.dmm: Cannot lookup hwmod 'dmm'

from the boot logs.

Signed-off-by: Darren Etheridge <detheridge@ti.com>
ti_fragments: audio_display: Change HDMI encoders to builtins

Make the HDMI encoders used by omapdss all builtins.  This allows display
during kernel boot, before userspace and udev is available.

Signed-off-by: Darren Etheridge <detheridge@ti.com>
ti_fragments: audio_display: make tda998x a builtin

The TILCDC DRM driver has been forced to be a builtin, but the tda998x also
needs to be a builtin otherwise display initialization fails on BeagleBone
Black.  This commit changes tda998x HDMI encoder driver to be a builtin.

Signed-off-by: Darren Etheridge <detheridge@ti.com>
Merge branch 'audio-display-ti-linux-3.14.y' of git://git.ti.com/~darrene/ti-linux-kernel/audio-display-linux-feature-tree into ti-linux-3.14.y

TI-Feature: audio-display
TI-Tree: git://git.ti.com/~darrene/ti-linux-kernel/audio-display-linux-feature-tree.git
TI-Branch: audio-display-ti-linux-3.14.y

* 'audio-display-ti-linux-3.14.y' of git://git.ti.com/~darrene/ti-linux-kernel/audio-display-linux-feature-tree:
  ti_fragments: audio_display: make tda998x a builtin
  ti_fragments: audio_display: Change HDMI encoders to builtins
  ARM: DRA7: hwmod: add DMM hwmod description
  OMAPDSS: DISPC: program dispc polarities to control module
  ARM: DTS: dra7: add syscon reference to dispc node
  drm/omap/fb: disable console switching during pm operations
  ASoC: edma-pcm: Increase period_bytes_min from 32 to 512
  ARM: dts: dra7-evm: move hpd_pin mux to correct place
  ARM: dts: dra72-evm: move hpd_pin mux to correct place
  OMAPDSS: panel-tlc59108: fix error handling
  media: ti-vpfe: driver restructuring to fix a kernel panic
  ti_fragments: audio_display: Enable OMAP DSS driver
  ti_fragments: audio_display: Enable DRM features by default

Signed-off-by: Dan Murphy <DMurphy@ti.com>