OMAP4460: TWL: disable PD on VCORE1 shutdown

When the PREQ goes low, both VCORE1(VDD_CORE) and VDDD_MPU
start transitioning to 0 volt but VCORE1 discharge is faster
than VDD_MPU discharge. This causes reliability concern from
OMAP's perspective. So, we disable  pulldown on VCORE1 to
slow down VDD_CORE discharge to make it comparable to VDD_MPU.

The Pulldown does not impact DVFS transition, and actual
OFF timing is not changed as well.

Change-Id: I707bb4c4ae50b3452304180e6b42db6b2bfdedd9
Signed-off-by: Nishanth Menon <nm@ti.com>
OMAPDSS:tc358765: make timings configurable via board files

Avoid using tc358765_bard_data structure, as all required attributes
already in struct omap_dss_device.

Change-Id: I6fbe5cc8d3df8d79e1a9f06e288c19e96c00f47f
Signed-off-by: Sergiy Kibrik <sergiy.kibrik@globallogic.com>
OMAPDSS:tc358765: Remove tc358765_board_data

Replace driver configuration via struct tc358765_board_data with
generic struct omap_dss_device, as all required parameters are
already there.

Change-Id: I1529cc60e1f47d0aa15513a0cbfef754214144de
Signed-off-by: Sergiy Kibrik <sergiy.kibrik@globallogic.com>
ASoC: OMAP: HDMI: Use generated audio MCLK for OMAP4430 ES 2.3

For OMAP4430 ES2.3, use pseudo generated clock (MCLK- based on TMDS
clock) to form Audio Clock Regeneration (ACR) packets. MCLK is also
used for OMAP4460 and later chip versions.

Change-Id: I65f255cb7eac39bbbb52b2f0105f6721f0f08df7
Signed-off-by: Axel Castaneda Gonzalez <x0055901@ti.com>
OMAP4: HDMI: Update 6 channel configuration

For 6 channel, set info frame with channel count = 7 (8-1) and
CA = 0x13 in order to ensure that sample_present bits
configuration matches the number of channels (2 channels are
padded with zeroes) that are sent to sink device, in order
to fullfil multichannel compliance test.

Change-Id: I5f149ec679e4a808ed0dbcf845de746e3a113c68
Signed-off-by: Axel Castaneda Gonzalez <x0055901@ti.com>
ASoC: OMAP: HDMI: Defer audio transfer start

Defer audio transfer after HDMI AUDIO wrapper is enabled.
If audio transmit was started along with audio wrapper enabling,
spurious data (zeros) was sent at the beginning of the transfer
as part of the of audio sample packets, due an AUDIO FIFO UNDERFLOW,
which was shifting audio channels.

Change-Id: I48d8c02c0467dd3158ac748eb0720173d3b209ca
Signed-off-by: Axel Castaneda Gonzalez <x0055901@ti.com>
OMAP4: HDMI: Enable ACR packet WA in CPU DAI

For OMAP4430 ES2.0, ES2.1 and ES2.2, enable the ACR packet WA
in HDMI CPU DAI driver to limit the number of ACR packets that
are sent to HDMI sink device. This allows to send ACR packets
at the rate described in HDMI 1.4a.

Change-Id: Ib38fa6dac6f3d85d4b38eb8e6391e6f67aecdd2b
Signed-off-by: vamsi krishna k <x0093442@ti.com>
Signed-off-by: Axel Castaneda Gonzalez <x0055901@ti.com>
drivers: misc: ti-st: Add missing carriage returns in print-functions calls

Due to missing carriage returns in print-functions calls
sometimes it's hard to read kernel log.
Fix this so now kernel log reading is more easy.

Change-Id: I033126f24e5819b2f97564bafd30b3156a95c06c
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
OMAP4: TEMP_SENSOR: Add missing carriage returns in print-function call

Due to missing carriage return in print-functions calls
sometimes it's hard to read kernel log.
Fix this so now kernel log reading is more easy.

Change-Id: I399c12f38a8e685ea19c7f79d930fa6ffc59511f
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
omaplfb: Simplify FB allocation strategy to 2 ion buffers

Make the framebuffer allocation code just request 2 buffers with
dimensions determined from fbdev.

Also just have the framebuffers allocated from the nonsecure heap
which will always be the case anyway in a sane system.

Removing this 'guess work' helps subsequent platform bring ups.

Signed-off-by: Tony Lofthouse <a0741364@ti.com>
Change-Id: I84e8e7d6831cd1e80e0ced8118f6d88e95c6b5e5
omaplfb: Move ION FB allocation out of an if(1)

This patch just puts the ION FB allocation code into a conditional
compilation without an if(1) { } statement.

Change-Id: I85d7cd4fbe25287210593e53b25329f07984cdfc
Signed-off-by: Tony Lofthouse <a0741364@ti.com>
omaplfb: isolate ION alloc code + clean CONFIG flag use for OMAP

Though not a true clean-up we want to do a small amount of
sanitizing of integration of ION and DSSCOMP.

We separate out the ION FB allocation.

Just use CONFIG_DSSCOMP in conditional compilation, if using
DSSCOMP we're using ION_OMAP and TI_TILER too.

Signed-off-by: Tony Lofthouse <a0741364@ti.com>
Change-Id: I368e95c7f01e2093c5a4f7da70a4183a7d8d35f6
Signed-off-by: Tony Lofthouse <a0741364@ti.com>
omap_hwc: Describe the api agreement with omaplfb

Change-Id: I1ec9348a661999d536dcec1ba47247289075790e
Signed-off-by: Tony Lofthouse <a0741364@ti.com>
omaplfb: fill blits support to clear a fb region

The HWC can pass down a source descriptor with a virtaddr
of -1 to indicate a fill/clear of the destination.

Change-Id: Ie55e3290f51c1de8a17a41d5cddaf0644c47b941
Signed-off-by: Tony Lofthouse <a0741364@ti.com>
omaplfb: allocate 2 blit framebuffers

Two additional framebuffers will the allocated from ION
for use with blit operations.

Change-Id: I30dcf19a0fdbedd54c5699a77fecc4bc78ef2ff0
Signed-off-by: Tony Lofthouse <a0741364@ti.com>
omaplfb: Blit framebuffers are now independent from swapchain

Map the blit buffers via BV by obtaining the list of pages from
omap_tiler_pages.

Because the framebuffer will not arrive as a meminfo we will
ping pong between the 2 blit framebuffers.

Change-Id: I709fac170961d163d927ef8611e45fef37b1093d
Signed-off-by: Tony Lofthouse <a0741364@ti.com>
PVR: Map buffers to GC core MMU on allocation time with Bltsville

This patch makes PVR services to map the allocated buffers with
the PVRSRV_MAP_GC_MMU flag into the GC MMU with the Bltsville
API. Buffers mapped with this flag are meant to be ready for
composition in OMAPLFB.

Change-Id: Ie8284cf6f5b9a566203942d3435b69071aecc3fb
Signed-off-by: Gustavo Diaz Prado <a0273371@ti.com>
Signed-off-by: Tony Lofthouse <a0741364@ti.com>
omaplfb: Increase the number of sync objects to for gc320 support

The number of sync objects is currently counted as roughly the
number of overlays x 2. With gc320 we may get up to 32 meminfos
(maybe 12 in reality) so increase the number of objects appropriately.

Change-Id: Ib69b45e99228fa0aef388389ebadc7cdc90e0552
Signed-off-by: Tony Lofthouse <a0741364@ti.com>
omaplfb: Workaround for FB clear with GC core

We would like to use bltsville to perform fill (clear) operations
but this currently has a bug w.r.t. the treatment of alpha values.

This workaround will manually perform a clear of the framebuffer
region.

Change-Id: Ibf673e50741cb98927dc1544a42f9fdba427d46b
Signed-off-by: Gustavo Diaz Prado <a0273371@ti.com>
Signed-off-by: Tony Lofthouse <a0741364@ti.com>
OMAPLFB: Fix flipchain buffer/memory miscalculation

This patch corrects a problem with Blaze where the buffer/memory
was not correctly calculated preventing the flipchain creation.

Change-Id: I7ea667e83749336c886b031ca167d97d0da24a90
Signed-off-by: Gustavo Diaz Prado <a0273371@ti.com>