omap: Add TILER reservation ION heap to omap4 board file

registration gives ion clients access to tiler reservation heap

The tiler reservation heap is for allocating TILER address space, but
not the underlying pages.  The idea is to allocate TILER address space
and one or more ION buffers from the system heap, and map system heap
buffers into the allocated TILER address space.

Signed-off-by: David Schleef <ds@ti.com>
Change-Id: I3eb8125d604106185c37f75d61cbbd9f2ef175a1
rpmsg: omx: fix copy_to_user in register/unregister ioctls

The ION fd registration and deregistration ioctls has the
arguments reversed in the copy_to_user() calls. The same
has been fixed.

Also included a minor additional case for returning a NULL
ION handle back to user-space.

Change-Id: I9d45957f9b913fa1775e70618f0da82e914a41d6
Signed-off-by: Tyler Luu <tluu@ti.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
Revert "omap: Add TILER reservation ION heap to omap4 board file"

This reverts commit 5e8c52491cc599ac573dd61161877200edb0e763.
ion: convert system heap to alloc_page()

vmalloc() allocates pages and maps them into kernel space.  If nobody
requires the area to be mapped in kernel space, this uses potentially
valuable VM address space.  Split into separate allocation and mapping
of pages.

Change-Id: I98411b93edea67c2068e20b5e48708fb38a4cd1f
Signed-off-by: David Schleef <ds@ti.com>
ion: add support for tiler reservation heap

The tiler reservation heap is for allocating TILER address space, but
not the underlying pages.  The idea is to allocate TILER address space
and one or more ION buffers from the system heap, and map system heap
buffers into the allocated TILER address space.

Change-Id: Ibd53ab811259cabec87384cf2ab4f99c0cbdca23
Signed-off-by: David Schleef <ds@ti.com>

Conflicts:
	drivers/gpu/ion/omap/omap_tiler_heap.c
ion: fix comment to match reality

Change-Id: Ib722e6c34965bf48ca5bdaaef3b4741146cc1508
Signed-off-by: David Schleef <ds@ti.com>
omap: Add TILER reservation ION heap to omap4 board file

registration gives ion clients access to tiler reservation heap

The tiler reservation heap is for allocating TILER address space, but
not the underlying pages.  The idea is to allocate TILER address space
and one or more ION buffers from the system heap, and map system heap
buffers into the allocated TILER address space.

Signed-off-by: David Schleef <ds@ti.com>
Change-Id: I3eb8125d604106185c37f75d61cbbd9f2ef175a1
Input: CEC keyboard driver

Adding support for CEC key board driver in input device.
UI commands received from CEC are mapped to the key buttons
in the linux kernel.

Change-Id: If4136940f28fb4a0c4b9b730aabb8e0fc7837ccf
Signed-off-by: Muralidhar Dixit <murali.dixit@ti.com>

Conflicts:
	drivers/video/omap2/dss/cec.c
OMAPDSS: CEC: Physical address discovery form edid

HDMI sink device will set the physical address for
CEC devices

Change-Id: I6419834816978dfc8bcb8ef9a7b6c36276e5792c
Signed-off-by: Muralidhar Dixit <murali.dixit@ti.com>

Conflicts:
	drivers/video/omap2/dss/hdmi.c
OMAPDSS: CEC: Add callback to CEC driver on HDMI HPD

Adding support for call back from HDMI to CEC driver
on HPD and HDMI enable.

Change-Id: I9fff9d41d598e5ef375bc03faafb9a559ce7435a
Signed-off-by: Muralidhar Dixit <murali.dixit@ti.com>
OMAPDSS: CEC: Adding support for CEC in HDMI driver

Adding support for CEC functionality in OMAP4 HDMI IP
specific file

Change-Id: I333e8ae484e0e56e0c597bca754f0276614d90ee
Signed-off-by: Muralidhar Dixit <murali.dixit@ti.com>

Conflicts:
	include/video/hdmi_ti_4xxx_ip.h
OMAPDSS: CEC: Adding HDMI CEC support

Adding CEC driver support in HDMI

Change-Id: Ia6a7d04b1df3a459ae435f8bec79219b2036dfa0
Signed-off-by: Muralidhar Dixit <murali.dixit@ti.com>
OMAPDSS: DSSCOMP: Added platform_info and getter

Get platform information from dss2 driver and android_display,
instead of it being hardcoded in dsscomp clients.

Change-Id: Icc23245ec93d93dd0d9b9fcd791e546720699dcc
Signed-off-by: Lajos Molnar <lajos@ti.com>
Signed-off-by: Dima Svetlov <svetlov@ti.com>

Conflicts:
	drivers/video/omap2/dsscomp/device.c
	drivers/video/omap2/dsscomp/dsscomp.h
	drivers/video/omap2/dsscomp/gralloc.c
OMAPDSS: DISPC: fix pclk divisor limits

According to TRM, minimal pixel clock divisor value can be 1.
Fix corresponding checks, as high resolution panels use undivided
pixel clock frequency.

Also certain scaler unit constraint must be met: in case DISPC_CLK
and pixel clock frequencies are equal, set IPC to work on rising edge.

Change-Id: Iabeac2ad81f6909213cb81f4e16b1d0762369b53
Signed-off-by: Sergiy Kibrik <sergiy.kibrik@globallogic.com>
Signed-off-by: Lajos Molnar <lajos@ti.com>
Signed-off-by: Dima Svetlov <svetlov@ti.com>
OMAPDSS: DSI: Enable DSI and DISPC configuration from board file

DSI and DISPC parameters cannot always be calculated by the
driver, so add fields to allow for providing detailed
configuration from the board file.

Change-Id: If8ad5c7c6479ae221b5dd8ddd44d845ab5756974
Signed-off-by: Peter Nordström <nordstrom@ti.com>
Signed-off-by: Lajos Molnar <lajos@ti.com>
Signed-off-by: Dima Svetlov <svetlov@ti.com>

Conflicts:
	drivers/video/omap2/dss/dsi.c
Added missing header for TIs DSS/DSI/DISPC changes
OMAPDSS: MFlag thresholds settings

As per the simultaion team suggestion, the below thesholds are set:
HT = fifosize * 5/8;
LT = fifosize * 4/8;

Change-Id: Ieef7d8a090e38ce717729fe30f60f46c6dfd6ddd
Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
Signed-off-by: Lajos Molnar <lajos@ti.com>
Signed-off-by: Dima Svetlov <svetlov@ti.com>
ION: Added support for getting ion phys without client

In order to dereference the ion_handles passed from user side
to kernel, there should be support for api without client identity.
This patch adds this support.

Change-Id: I95d0d460c9e0ad202d14e7620b82e1fa9d48f746
Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
Signed-off-by: Lajos Molnar <lajos@ti.com>
Signed-off-by: Dima Svetlov <svetlov@ti.com>