android-sdk/kernel-video.git
7 years agoomapdss: dra7x hdmi: optimize hdmi PLL calculations hdmi-linux
Archit Taneja [Wed, 9 Apr 2014 13:25:53 +0000 (18:55 +0530)]
omapdss: dra7x hdmi: optimize hdmi PLL calculations

Based on inputs from SiVal team, the PLL computation has been tweaked
to support most of timings.

Change-Id: Id4bd02a4641633e9663c4401063f1e2bf0bc66d5
Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Somnath Mukherjee <somnath@ti.com>
7 years agoRevert "OMAPDSS:HDMI: Change PLL calculations"
srinivas pulukuru [Mon, 10 Feb 2014 19:41:19 +0000 (13:41 -0600)]
Revert "OMAPDSS:HDMI: Change PLL calculations"

This reverts commit 4ebcade90a3cd164de43cb96cda1fe6f319c58bc.
This patch revert fixes the HDMI PLL lock issue.

Change-Id: Ia18f458ddfbbbc9b13258c99eb8943f1893746f1
Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
7 years agoOMAPDSS: HDMI: Fix log statements from error to info
srinivas pulukuru [Wed, 20 Nov 2013 23:04:59 +0000 (17:04 -0600)]
OMAPDSS: HDMI: Fix log statements from error to info

HDMI logs show DSSERR. this should be DSSINFO statements

Change-Id: I3b46c8be91c6848131c366730ec2a1968be78253
Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
7 years agoOMAPDSS: HDMI: Fix HDMi driver crash when no HDMI node in dts file
srinivas pulukuru [Fri, 22 Nov 2013 20:58:04 +0000 (14:58 -0600)]
OMAPDSS: HDMI: Fix HDMi driver crash when no HDMI node in dts file

hpd_gpio access without hdmi node in device tree was causing
NULL pointer exception in hdmi driver.
Added a check to see if hpd_gpio is not 0 before reading gpio state.

Change-Id: Icbb939ab43ad2fa05b0b56010f49ecc96f7684cb
Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
7 years agoMerge branch 'hdmi-linux' of git://git.ti.com/android-sdk/kernel-video into hdmi...
srinivas pulukuru [Wed, 20 Nov 2013 17:59:50 +0000 (11:59 -0600)]
Merge branch 'hdmi-linux' of git://git.ti.com/android-sdk/kernel-video into hdmi-linux

7 years agoOMAPDSS: Disable hw auto for DSS_GICLK to keep it active
Sundar Raman [Tue, 12 Nov 2013 17:33:29 +0000 (11:33 -0600)]
OMAPDSS: Disable hw auto for DSS_GICLK to keep it active

HDMI EDID read was failing due to DSS_GICLK going idle
due to hw auto. Setting sw wakeup before reading EDID is
not helping. So, removing setting the hw auto mode altogether
to allow reading the edid.

Change-Id: I34b4002a828fec6342abc30ec3b24b94cfd1fec0
Signed-off-by: Srinivas Pulukuru <srinivas.pulukuru@ti.com>
Signed-off-by: Sundar Raman <sunds@ti.com>
7 years agoPANEL: Fix to remove the conflict between HDMI/VIP
Arthur Philpott [Tue, 5 Nov 2013 22:07:53 +0000 (16:07 -0600)]
PANEL: Fix to remove the conflict between HDMI/VIP

This is a valid fix to remove the conflict that
existed between HDMI and VIP. HDMI takes precedence
over VIP since they can not be functional at the
same time.

When we receive an interrupt signaling that HPD
is low (HPD 0), we then precede to entering the
hdmi_hotplug_detect_worker thread. Since the HPD
state is off the worker thread then checks if
there is an active display, but since there is not
the state machine must be restored.

Change-Id: I9477129199a02346d56b5431cf6b535f248b7d3b
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
7 years agoOMAPDSS: HDMI: Wait for audio to complete before turning off PHY power
Misael Lopez Cruz [Fri, 1 Nov 2013 19:29:11 +0000 (14:29 -0500)]
OMAPDSS: HDMI: Wait for audio to complete before turning off PHY power

Ported from k3.4, commit 0cb2e907 from Priyesh Bisla <a0271372@ti.com>.

Change-Id: I65a44b7c869c276902edc6b04f1d5519e9a66fbc
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
7 years agoOMAPDSS: HDMI: Wait for audio to complete before turning off PHY power
Misael Lopez Cruz [Fri, 1 Nov 2013 19:29:11 +0000 (14:29 -0500)]
OMAPDSS: HDMI: Wait for audio to complete before turning off PHY power

Ported from k3.4, commit 0cb2e907 from Priyesh Bisla <a0271372@ti.com>.

Change-Id: I65a44b7c869c276902edc6b04f1d5519e9a66fbc
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
7 years agoMerge branch 'vip' into p-ti-linux-3.8.y-video
Arthur Philpott [Wed, 30 Oct 2013 19:45:35 +0000 (14:45 -0500)]
Merge branch 'vip' into p-ti-linux-3.8.y-video

* vip:
  VPDMA: Create Load Kernel VPDMA F/W flag
  DTS: Added ov10633 sensor support to the DTS file
  i2c: ov10635: Added support for the OV10633 sensor
  VIP: Remove GPIO configuration for OV1063x sensors
  VPDMA FW: Include VPDMA FW in kernel firmware directory.

Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
Conflicts:
firmware/Makefile

Change-Id: I9e7b688e1aa4f1474da13667c059c571eab4d53c

7 years agoVPDMA: Create Load Kernel VPDMA F/W flag
Arthur Philpott [Wed, 30 Oct 2013 18:49:11 +0000 (13:49 -0500)]
VPDMA: Create Load Kernel VPDMA F/W flag

Create Load Kernel VPDMA F/W flag in order to specify
whether the VPDMA F/W will be loaded from kernel.

Change-Id: If510eca81b30847534fd2a4a2e4593732cf03b16
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
7 years agoDTS: Added ov10633 sensor support to the DTS file
Arthur Philpott [Fri, 25 Oct 2013 21:57:27 +0000 (16:57 -0500)]
DTS: Added ov10633 sensor support to the DTS file

-Created new entry for ov10633 support
-Removed camera module from VIP handle and placed along
 with sensors

Change-Id: I738f907ff2b33fc842c67dc13d4421037da20a17
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
7 years agoi2c: ov10635: Added support for the OV10633 sensor
Arthur Philpott [Fri, 25 Oct 2013 21:51:33 +0000 (16:51 -0500)]
i2c: ov10635: Added support for the OV10633 sensor

-Added support for the OV10633 sensor
-Added GPIO configurations to toggle mux settings
 for the OV1063x sensors

Change-Id: Ia28d8d69687a80c9aa2dac9d44eb2b23958adeff
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
7 years agoVIP: Remove GPIO configuration for OV1063x sensors
Arthur Philpott [Fri, 25 Oct 2013 21:50:12 +0000 (16:50 -0500)]
VIP: Remove GPIO configuration for OV1063x sensors

The GPIO configurations for the OV1063x sensors have
been removed from the VIP driver to keep the framework
generic.

Change-Id: I51a9aa57f903cfc64fe99c62817530471bd8f9f5
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
7 years agoVPDMA FW: Include VPDMA FW in kernel firmware directory.
Arthur Philpott [Thu, 17 Oct 2013 23:41:11 +0000 (18:41 -0500)]
VPDMA FW: Include VPDMA FW in kernel firmware directory.

Ease deployment and include the VPDMA firmware in build/install.

Change-Id: I28449361aa19e2c328c2e583d2faaac51a5d6ed5
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
7 years agoARM: dts-dra7: Add display-id override numbers
Dandawate Saket [Tue, 22 Oct 2013 21:37:20 +0000 (14:37 -0700)]
ARM: dts-dra7: Add display-id override numbers

Add display ID for all display devices.

Signed-off-by: Dandawate Saket <dsaket@ti.com>
7 years agoMerge branch 'local_dss' into local_video_linux
Dandawate Saket [Tue, 22 Oct 2013 21:40:06 +0000 (14:40 -0700)]
Merge branch 'local_dss' into local_video_linux

* local_dss:
  OMAPDSS: Add support to override the display ID

Signed-off-by: Dandawate Saket <dsaket@ti.com>
7 years agoOMAPDSS: Add support to override the display ID
Dandawate Saket [Tue, 22 Oct 2013 21:27:12 +0000 (14:27 -0700)]
OMAPDSS: Add support to override the display ID

Add support in DTSI file to override the display ID for various
devices. It is the resposibility of the board file to make sure
all the display devices have unique display id. Also we cannot
switch between override mode for one device vs automatic generation
mode for another device since there is a possiblity of display id
duplication.

Signed-off-by: Dandawate Saket <dsaket@ti.com>
7 years agodts-evm : DRA7: Add muxing support for LCD3 manager
Dandawate Saket [Mon, 21 Oct 2013 20:28:52 +0000 (13:28 -0700)]
dts-evm : DRA7: Add muxing support for LCD3 manager

Add support for LCD3 manager connecting to DPI3->VOUT3.
Mux the GPMC registers to act like LCD3.

NOTE:
This will disable GPMC pin usage

Change-Id: If41c9d97c365371ac09a3f578c58cb21c53fd5b3
Signed-off-by: Dandawate Saket <dsaket@ti.com>
7 years agoMerge branch 'local_fpdlink' into local_video_linux
Dandawate Saket [Mon, 21 Oct 2013 20:14:27 +0000 (13:14 -0700)]
Merge branch 'local_fpdlink' into local_video_linux

* local_fpdlink:
  dra7-dts-evm: Add deserilizer device
  dts-evm: Add support for FPD device creation
  dts: FPDLINK: Add lg101 panel device
  OMAPDSS: Panel: add deserilzer support
  Deserializer: Add support for deserializer
  PANEL: ADD Serializer Support
  SERLINK: Support for serial link
  OMAPDSS: PANEL: Add driver to support LG101 display

Signed-off-by: Dandawate Saket <dsaket@ti.com>
7 years agoMerge branch 'local_dss' into local_video_linux
Dandawate Saket [Mon, 21 Oct 2013 20:14:07 +0000 (13:14 -0700)]
Merge branch 'local_dss' into local_video_linux

* local_dss:
  OMAPDSS: DSSPLL: Add support for LCD3 manager
  OMAPDSS: DISPC: Add support for LCD3 manager
  OMAPDSS: Panel: Update generic dpi panel to support DTS model

Signed-off-by: Dandawate Saket <dsaket@ti.com>
7 years agodra7-dts-evm: Add deserilizer device
Dandawate Saket [Mon, 14 Oct 2013 06:21:58 +0000 (23:21 -0700)]
dra7-dts-evm: Add deserilizer device

Add device creation for deserilizer.

Change-Id: I9f2113d83e3dd6ac739853b3c13b87bfd9ce1fa1
Signed-off-by: Dandawate Saket <dsaket@ti.com>
7 years agodts-evm: Add support for FPD device creation
Dandawate Saket [Wed, 9 Oct 2013 01:42:08 +0000 (18:42 -0700)]
dts-evm: Add support for FPD device creation

Add support for FPD device creation.

Change-Id: I6a7dcae1180ea6dd0a52b6ee84b71760241baf83
Signed-off-by: Dandawate Saket <dsaket@ti.com>
7 years agodts: FPDLINK: Add lg101 panel device
Dandawate Saket [Thu, 17 Oct 2013 06:20:03 +0000 (23:20 -0700)]
dts: FPDLINK: Add lg101 panel device

Add LCD3 based LG panel device creation.

Make display2 as fpdlink display with channel id 3.

Change-Id: I1d52a8cc434d25457028c265e34c4ac1dd703c28
Signed-off-by: Dandawate Saket <dsaket@ti.com>
7 years agoOMAPDSS: Panel: add deserilzer support
Dandawate Saket [Fri, 11 Oct 2013 21:41:06 +0000 (14:41 -0700)]
OMAPDSS: Panel: add deserilzer support

Add deserializer support

Change-Id: Iddc8f361dcbc05c92e8f1d222d028f7c40dc7671
Signed-off-by: Dandawate Saket <dsaket@ti.com>
7 years agoDeserializer: Add support for deserializer
Dandawate Saket [Fri, 11 Oct 2013 21:36:42 +0000 (14:36 -0700)]
Deserializer: Add support for deserializer

Deserilizer will take differential link data and convert
to LVDS signal for the panel to understand

Change-Id: I2970bac4c3d021cbb7a6a78a2971f3a515c86d89
Signed-off-by: Dandawate Saket <dsaket@ti.com>
7 years agoPANEL: ADD Serializer Support
Dandawate Saket [Wed, 9 Oct 2013 21:29:05 +0000 (14:29 -0700)]
PANEL: ADD Serializer Support

Add Serializer support in panel driver.

Change-Id: I29056b9a3b633139426ef628db2da9b21392f706
Signed-off-by: Dandawate Saket <dsaket@ti.com>
7 years agoSERLINK: Support for serial link
Dandawate Saket [Tue, 8 Oct 2013 19:01:04 +0000 (12:01 -0700)]
SERLINK: Support for serial link

Add basic support for enabling serial link.

Change-Id: I599dbc6039a654a212379b36b50b49859b08e5e5
Signed-off-by: Dandawate Saket <dsaket@ti.com>
7 years agoOMAPDSS: PANEL: Add driver to support LG101 display
Dandawate Saket [Sun, 6 Oct 2013 21:52:13 +0000 (14:52 -0700)]
OMAPDSS: PANEL: Add driver to support LG101 display

Add driver to support LG101 chalk display using dts

Change-Id: I1b6d3431a8d65bc03ddf3bfd24793e04003d5d78
Signed-off-by: Dandawate Saket <dsaket@ti.com>
7 years agoOMAPDSS: DSSPLL: Add support for LCD3 manager
Dandawate Saket [Sun, 6 Oct 2013 22:14:57 +0000 (15:14 -0700)]
OMAPDSS: DSSPLL: Add support for LCD3 manager

Add support for LCD3 manager in VID PLL. Selection
of clock was not proper sequence and HS diver muz
was not set. Note HS diver bits are not documented
in TRM.

Change-Id: Id411151ed4330c22a52876df92ef74ae1baf3a9b
Signed-off-by: Dandawate Saket <dsaket@ti.com>
7 years agoOMAPDSS: DISPC: Add support for LCD3 manager
Dandawate Saket [Sun, 6 Oct 2013 22:13:17 +0000 (15:13 -0700)]
OMAPDSS: DISPC: Add support for LCD3 manager

Add support for LCD3 manager for interrupt registration and
update feature database.

Change-Id: Ia268ef19794c24a1aca1ab0bc24be23a03e2b2a1
Signed-off-by: Dandawate Saket <dsaket@ti.com>
7 years agoOMAPDSS: Panel: Update generic dpi panel to support DTS model
Dandawate Saket [Sun, 6 Oct 2013 21:42:16 +0000 (14:42 -0700)]
OMAPDSS: Panel: Update generic dpi panel to support DTS model

Update generic dpi driver to understand DTS structure make
appropriate panel driver instance.

Change-Id: I5422a703f7ec00787c3d558f9b50ac94b653ad51
Signed-off-by: Dandawate Saket <dsaket@ti.com>
7 years agoMerge branch 'vip' into p-ti-linux-3.8.y-video
Arthur Philpott [Fri, 18 Oct 2013 00:00:21 +0000 (19:00 -0500)]
Merge branch 'vip' into p-ti-linux-3.8.y-video

* vip:
  VPDMA FW: Include VPDMA FW in kernel firmware directory

Change-Id: Ica8117b3e6d91142e73f500cf55f5c8b1aacecc7
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
7 years agoVPDMA FW: Include VPDMA FW in kernel firmware directory.
Arthur Philpott [Thu, 17 Oct 2013 23:41:11 +0000 (18:41 -0500)]
VPDMA FW: Include VPDMA FW in kernel firmware directory.

Ease deployment and include the VPDMA firmware in build/install.

Change-Id: I28449361aa19e2c328c2e583d2faaac51a5d6ed5
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
7 years agoARM: dts: dra7-evm: Add MCASP8 pins to select HDMI/I2c2
srinivas pulukuru [Thu, 17 Oct 2013 19:04:22 +0000 (14:04 -0500)]
ARM: dts: dra7-evm: Add MCASP8 pins to select HDMI/I2c2

Add MCASP8 pins to control selection between HDMI and I2C2

Change-Id: I9a1cf062cbc19012c80c26df2a356f87e25c7551

7 years agoMerge branch 'dss' into p-ti-linux-3.8.y-video
srinivas pulukuru [Thu, 17 Oct 2013 19:00:12 +0000 (14:00 -0500)]
Merge branch 'dss' into p-ti-linux-3.8.y-video

* dss:
  OMAPDSS: DSS: Add DSS WB support
  DISPC: Add force 1D tiled mode support
  OMAPDSS: DISPC: Errata ID: i631: Wrong Access In 1D Burst For YUV4:2:0-NV12 Format
  OMAPDSS: DISPC: Protect the dispc error worker from NULL pointer
  OMAPDSS: DISPC: gracefully disable overlay at error
  OMAPDSS: DISPC: set preload to high threshold to avoid FIFO underflow

Change-Id: I859616a99a5e8a98d23b53b8016e7ce1d75412f6
Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
7 years agoOMAPDSS: DSS: Add DSS WB support
srinivas pulukuru [Tue, 15 Oct 2013 05:42:47 +0000 (00:42 -0500)]
OMAPDSS: DSS: Add DSS WB support

Add DSS WB support

Change-Id: Ia3292b17ccce48cdaa1fe45d389db690ac84926d
Signed-off-by: Srinivas Pulukuru <srinivas.pulukuru@ti.com>
7 years agoDISPC: Add force 1D tiled mode support
srinivas pulukuru [Wed, 18 Sep 2013 13:17:06 +0000 (08:17 -0500)]
DISPC: Add force 1D tiled mode support

 Descrition: omap5 es2.0 silicon allows 1d accesses to tiled regions. This is
 done to allow skipping multiple lines in tiled address space.

 the ddma of es1.0 silicon generates ocp bus error upon trying to do 1d access
 in tiled address space. This limitation is removed in es2.0 silicon by adding
 a new bit field FORCE1DTILEDMODE which allows the ddma to do 1d access in tiled
 address space.

 This patch adds framework support for accessing this new bit field. The actual
 implementation of this feature is application specific and is not part of this
 patch.

Change-Id: I528883ba8ac94508a7269841cb56f99ad53b6602
Signed-off-by: Sreenidhi Koti <sreenidhi@ti.com>
Signed-off-by: Srinivas Pulukuru <srinivas.pulukuru@ti.com>
7 years agoOMAPDSS: DISPC: Errata ID: i631: Wrong Access In 1D Burst For YUV4:2:0-NV12 Format
srinivas pulukuru [Mon, 10 Jun 2013 18:38:12 +0000 (13:38 -0500)]
OMAPDSS: DISPC: Errata ID: i631: Wrong Access In 1D Burst For YUV4:2:0-NV12 Format

Errata DESCRIPTION:
When in YUV4:2:0 format in 1D burst, the DISPC DMA skips lines when fetching Chroma sampling.

WORKAROUND:
If YUV4:2:0-1D burst is required:
Set DISPC_VIDp_ATTRIBUTES[22]DOUBLESTRIDE to 0x0 and
DISPC_VIDp_ATTRIBUTES[13:12]ROTATION to 0x1 or 0x3

Change-Id: I8cb408418be35850ec48e01f9d23da8f182901c9
Signed-off-by: Srinivas Pulukuru <srinivas.pulukuru@ti.com>
7 years agoOMAPDSS: DISPC: Protect the dispc error worker from NULL pointer
srinivas pulukuru [Wed, 18 Sep 2013 19:08:09 +0000 (14:08 -0500)]
OMAPDSS: DISPC: Protect the dispc error worker from NULL pointer

 With HDMI default display the mgr and mgr->device will be NULL
 which causes a panic.
 Protect against dereferencing a NULL pointer

Change-Id: If61266229ce762842dd21f3cbfe61d82b3b51b72
Author: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Srinivas Pulukuru <srinivas.pulukuru@ti.com>
7 years agoOMAPDSS: DISPC: gracefully disable overlay at error
srinivas pulukuru [Tue, 17 Sep 2013 20:39:59 +0000 (15:39 -0500)]
OMAPDSS: DISPC: gracefully disable overlay at error

Disable overlay via ovl->disable() interface, which will
properly set flags in cache and GO bits for managers.
This allows overlay user to re-enable it on next frame,
thus recovering from FIFO underflows.

Author: Sergiy Kibrik <sergiy.kibrik@globallogic.com>
Change-Id: Iafeea91196efae82e81b41c637848accd80c07d6
Signed-off-by: Sergiy Kibrik <sergiy.kibrik@globallogic.com>
Signed-off-by: Srinivas Pulukuru <srinivas.pulukuru@ti.com>
7 years agoOMAPDSS: DISPC: set preload to high threshold to avoid FIFO underflow
srinivas pulukuru [Mon, 16 Sep 2013 16:59:34 +0000 (11:59 -0500)]
OMAPDSS: DISPC: set preload to high threshold to avoid FIFO underflow

set preload to high threshold to avoid FIFO underflow in HDMI

Change-Id: Ia21692755cc5fa1f7d829ee6faf6ce93ac1388ab
Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
7 years agoMerge branch 'hdmi-linux' into p-ti-linux-3.8.y-video
srinivas pulukuru [Thu, 17 Oct 2013 18:54:54 +0000 (13:54 -0500)]
Merge branch 'hdmi-linux' into p-ti-linux-3.8.y-video

* hdmi-linux:
  OMAPDSS: HDMI: allow hdmi timing change without cable plugged in.
  OMAPDSS: HDMI: Remove warnings from unused functions
  OMAPDSS: HDMI: HDCP: Add HDCP Driver
  OMAPDSS: HDMI: Add support for HDCP driver
  HACK: OMAPDSS: HDMI: set DSS_CLKSTCTRL in SW_WKUP to enable edid read
  OMAPDSS: HDMI: Add support for edid read through DDC and I2C2
  OMAPDSS: HDMI: Add sysfs entries for hdmi_timings and edid
  OMAPDSS: HDMI: Enable HPD switch implementation
  OMAPDSS: HDMI: Add support for HDMI HPD
  OMAPDSS: HDMI: Add fb mode support

Change-Id: Ie0afd68b4b59749639d71c22fb0002d68028f7b9
Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
7 years agoOMAPDSS: HDMI: allow hdmi timing change without cable plugged in.
srinivas pulukuru [Thu, 17 Oct 2013 18:40:44 +0000 (13:40 -0500)]
OMAPDSS: HDMI: allow hdmi timing change without cable plugged in.

 This patch allows the hdmi timings to be changed without the cable
 plugged in.
 For the timing change to work properly, connect the cable the
 first time and let the HDMI configure correctly.
 Cable can be removed for the subsequent timing changes.

 Change-Id: I6efb3cae7ba8f6cfbc91d1612ba21a032552e144
Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
Change-Id: I80e860e17df3545804e7ee0c3e523beb3c606094

7 years agoOMAPDSS: HDMI: Remove warnings from unused functions
srinivas pulukuru [Wed, 25 Sep 2013 20:40:29 +0000 (15:40 -0500)]
OMAPDSS: HDMI: Remove warnings from unused functions

Some funtions were hidden due to FBMODE macros causing warnings

Change-Id: I6214e03e71d847bf72cc9baa60151997830808ed
Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
7 years agoOMAPDSS: HDMI: HDCP: Add HDCP Driver
srinivas pulukuru [Mon, 12 Aug 2013 19:37:09 +0000 (14:37 -0500)]
OMAPDSS: HDMI: HDCP: Add HDCP Driver

Add HDCP driver and add support for HDCP driver in HDMI driver

Change-Id: I1a064f735acfe9ba6a67da4e88679ec4b5d64d9d
Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
7 years agoOMAPDSS: HDMI: Add support for HDCP driver
srinivas pulukuru [Thu, 17 Oct 2013 18:38:40 +0000 (13:38 -0500)]
OMAPDSS: HDMI: Add support for HDCP driver

Add support for HDCP driver in HDMI ip and source files

Change-Id: Ib3663a2ea3bf438bc35ee0bb0d825dba94bdda7f
Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
7 years agoHACK: OMAPDSS: HDMI: set DSS_CLKSTCTRL in SW_WKUP to enable edid read
srinivas pulukuru [Fri, 26 Jul 2013 05:06:39 +0000 (00:06 -0500)]
HACK: OMAPDSS: HDMI: set DSS_CLKSTCTRL in SW_WKUP to enable edid read

Edid read fails when DSS Clock domain is in HW_AUTO. Set it to SW_WKUP
to enable DSS_L3_GICLK all the time when reading EDID.
Revert back to HW_AUTO when done with reading.

Change-Id: I48b357ab6b537886de2c522a171f9aaa3245daf3
Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
7 years agoOMAPDSS: HDMI: Add support for edid read through DDC and I2C2
srinivas pulukuru [Thu, 17 Oct 2013 18:31:12 +0000 (13:31 -0500)]
OMAPDSS: HDMI: Add support for edid read through DDC and I2C2

 Added a config option to swtich edid read between DDC and I2C2.

 Set muxmode for for DDC or I2C2 based on the config option.

 Change the SEL_HDMI_I2C2 mux selector pin from MCASP2_ACLKR to MCASP8_AXR2
 Switching to MCASP8 to avoid configuring the current McASP2 PFUNC/PDIR
 registers from both ARM and DSP.

 Change-Id: If029ce1ea05fd787f106ea13db0bd40d2f7dc2a5
Signed-off-by: Srinivas Pulukuru <srinivas.pulukuru@ti.com>
Signed-off-by: archit taneja <archit@ti.com>
Change-Id: I8f98016f3c55835a8d6cb2f4778c2a2838dcaead

7 years agoOMAPDSS: HDMI: Add sysfs entries for hdmi_timings and edid
srinivas pulukuru [Thu, 17 Oct 2013 18:27:05 +0000 (13:27 -0500)]
OMAPDSS: HDMI: Add sysfs entries for hdmi_timings and edid

Add hdmi_timings and edid sysfs entries.

Change-Id: Iaacb005410fb1dff35bbf1f6ecc2c4702c948606
Signed-off-by: Srinivas Pulukuru <srinivas.pulukuru@ti.com>
7 years agoOMAPDSS: HDMI: Enable HPD switch implementation
srinivas pulukuru [Thu, 1 Aug 2013 21:50:54 +0000 (16:50 -0500)]
OMAPDSS: HDMI: Enable HPD switch implementation

Add switch implementation and propagate switch state on  HPD

Change-Id: Ia74c907a10d7958d0750dc879d687eb56ecd2ce3
Signed-off-by: Srinivas Pulukuru <srinivas.pulukuru@ti.com>
7 years agoOMAPDSS: HDMI: Add support for HDMI HPD
srinivas pulukuru [Thu, 17 Oct 2013 18:21:59 +0000 (13:21 -0500)]
OMAPDSS: HDMI: Add support for HDMI HPD

Add hpd support in hdmi_panel and remove from hdmi_ip file
Enable hpd during bootup.

Added a new file hdmi.h. Going forward this file will include
all the hdmi interface driver declarations/definitions

Change-Id: I40b3172585bc7141981edc785ae706393a0b82b8
Signed-off-by: Srinivas Pulukuru <srinivas.pulukuru@ti.com>
7 years agoOMAPDSS: HDMI: Add fb mode support
srinivas pulukuru [Thu, 17 Oct 2013 16:38:23 +0000 (11:38 -0500)]
OMAPDSS: HDMI: Add fb mode support

Add fb mode db support for reading edid

Change-Id: I3a1e67042d67f827562682d6336f2df6319e1d36
Signed-off-by: Dandawate Saket <dsaket@ti.com>
Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
7 years agoMerge branch 'dss' into p-ti-linux-3.8.y-video
srinivas pulukuru [Thu, 17 Oct 2013 18:51:38 +0000 (13:51 -0500)]
Merge branch 'dss' into p-ti-linux-3.8.y-video

* dss:
  OMAPDSS: DSS: enable dispc_clk_source selection from HDMI

Change-Id: I982cbeb16ee25e44f1442438492002481075c692
Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
7 years agoOMAPDSS: DSS: enable dispc_clk_source selection from HDMI
srinivas pulukuru [Thu, 17 Oct 2013 16:35:54 +0000 (11:35 -0500)]
OMAPDSS: DSS: enable dispc_clk_source selection from HDMI

 enable dispc_clk_source selection from HDMI

Change-Id: I969ed6809904a73b68272369568c3595fefc1e3e
Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
7 years agoMerge branch 'vip' into p-ti-linux-3.8.y-video
Arthur Philpott [Tue, 15 Oct 2013 22:17:51 +0000 (17:17 -0500)]
Merge branch 'vip' into p-ti-linux-3.8.y-video

This merge contains all of the VIP changes.
It enables functionality of the OV10635
sensor. It also combines the VIP and VPE
into one common directory in order to utilize
the shared VPDMA library.

* vip:
  i2c: Add support for OV10635 sensor
  VIP: Added Support for OV10635 sensor
  i2c: Added device tree support for OV10635 sensor
  v4l2: Added v4l2 asynchronous probing capabilities
  VIP: Add device tree support for VIP
  Added Kconfig for vpdma
  VIP: Initial version of DRA7xx VIP driver

Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
7 years agoi2c: Add support for OV10635 sensor
Arthur Philpott [Mon, 9 Sep 2013 22:18:31 +0000 (17:18 -0500)]
i2c: Add support for OV10635 sensor

Added driver support for OV10635 sensor.

Change-Id: I3971f746366c82abd536c3179884cb30599fcb13
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
[Fixed checkpatch error]
Signed-off-by: Somnath Mukherjee <somnath@ti.com>
7 years agoVIP: Added Support for OV10635 sensor
Arthur Philpott [Mon, 9 Sep 2013 22:23:30 +0000 (17:23 -0500)]
VIP: Added Support for OV10635 sensor

Added support for OV10635 sensor in the VIP driver.

Change-Id: Ie9d16f02add9d16c9686abafff5fbf36218b4304
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
[Fixed checkpatch error]
Signed-off-by: Somnath Mukherjee <somnath@ti.com>
7 years agoi2c: Added device tree support for OV10635 sensor
Arthur Philpott [Mon, 9 Sep 2013 22:19:29 +0000 (17:19 -0500)]
i2c: Added device tree support for OV10635 sensor

-Added device tree support for OV10635 sensor.
-Disabled HDMI because there is a conflict between
 HDMI and VIP muxing on the pc8575.

Change-Id: I8309e3339e7a876a9b9562b0c25d8030812de51d
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
7 years agov4l2: Added v4l2 asynchronous probing capabilities
Arthur Philpott [Mon, 9 Sep 2013 22:15:48 +0000 (17:15 -0500)]
v4l2: Added v4l2 asynchronous probing capabilities

Added v4l2 asynchronous probing capabilities.

Change-Id: I9ed6f0d1f056b79d2bd66e668f65ac129d1d631e
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
7 years agoVIP: Add device tree support for VIP
Arthur Philpott [Mon, 9 Sep 2013 19:17:08 +0000 (14:17 -0500)]
VIP: Add device tree support for VIP

Add device tree support for VIP.

Change-Id: Iefbae706f8186698500df6d2942a9775f50f2fba
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
7 years agoAdded Kconfig for vpdma
Nikhil Devshatwar [Wed, 2 Oct 2013 19:56:12 +0000 (01:26 +0530)]
Added Kconfig for vpdma

Added one Kconfig for VPDMA
This solved the redeclaration errors for vpdma
functions.

Change-Id: I949afe1df6d19cf5bfd06b38fe01df789143c4bb
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
Conflicts:
drivers/media/platform/Makefile

7 years agoVIP: Initial version of DRA7xx VIP driver
Dale Farnsworth [Mon, 9 Sep 2013 18:54:39 +0000 (13:54 -0500)]
VIP: Initial version of DRA7xx VIP driver

This is a very preliminary version of the driver based
on what was given by Dale Farnsworth and the LCPD team.

Change-Id: Iff588c128f4e483d75a11393822f4c31baa168bc
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
[Fixed checkpatch errors]
Signed-off-by: Somnath Mukherjee <somnath@ti.com>
7 years agoMerge remote-tracking branch 'origin/dss' into p-ti-linux-3.8.y-video
Praneeth Bajjuri [Tue, 24 Sep 2013 16:54:58 +0000 (11:54 -0500)]
Merge remote-tracking branch 'origin/dss' into p-ti-linux-3.8.y-video

* origin/dss:
  OMAPDSS: DISPC: Remove reduntant code for passing plane info

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
7 years agoOMAPDSS: DISPC: Remove reduntant code for passing plane info
srinivas pulukuru [Mon, 23 Sep 2013 04:00:17 +0000 (23:00 -0500)]
OMAPDSS: DISPC: Remove reduntant code for passing plane info

overlay id is being retrived from overlay that was not initialized during probe.
This will cause NULL pointer exception when accessing the ovl->id
directly when initializing the DISPC without initializing the
overlas/managers during probe.

overlays/managers are being initialized during probe with a call
to omapdss_compat_init(). This call is being made from dsscomp or omapfb
probe. if either of these components are not used by the rendering engine
then it will cause NULL pointer exception when accessing overlays frmo DISPC.

Change-Id: I2c98aa5de4f3bf2a4ea6206f0f605d24343e9996
Signed-off-by: Srinivas Pulukuru <srinivas.pulukuru@ti.com>
7 years agoMerge branch 'gc320' into p-ti-linux-3.8.y-video
Sundar Raman [Tue, 17 Sep 2013 20:12:44 +0000 (15:12 -0500)]
Merge branch 'gc320' into p-ti-linux-3.8.y-video

Merge gc320 feature branch into common kernel branch for
gc320 driver sharing.

* gc320:
  gc320: Fix MMU error issue
  ARM: OMAP5/DRA7: hwmod: add ADDR_TYPE_RT to bb2d address flags
  gc320: gcx: [WA] Allocate MMU page tables as non cached
  gc320: Added  missing programming of MTLB base second time
  gc320: adding gcxxx support in Makefiles
  gc320: Adapt GC320 driver for K3.8
  devices: Initialize GC320 as part of devices init
  platform_data: Added platform data for GC320
  gc320: OMAP4: Adding cache-2dmanager
  Initial Open Color format Definitions (OCD).
  OMAP4:GCXXX: Fixing build warnings
  OMAP4: adding Vivante Corp 2/3D gcxxx driver files
  OMAP4: adding BLTsville header files
  Initial BLTsville API definition.

Change-Id: I84cbe026f20439a18650466f0e6e9c819aeac499
Signed-off-by: Sundar Raman <sunds@ti.com>
7 years agogc320: Fix MMU error issue gc320
ye.feng [Mon, 9 Sep 2013 03:12:02 +0000 (11:12 +0800)]
gc320: Fix MMU error issue

Earlier every second run of a GC320 test case after a boot
crashed with MMU fault. Updated logical address as well when
current command queue was not mapped yet.
This patch addresses this mmu error issue.

Change-Id: Ic1c0f14ea1c9e74099adbab1e69c9c0b74b6f804
Signed-off-by: Yi Zhang <yi.zhang@vivantecorp.com>
Signed-off-by: Pradeep Venkatasubbarao <pradeepv@ti.com>
7 years agoARM: OMAP5/DRA7: hwmod: add ADDR_TYPE_RT to bb2d address flags
Sundar Raman [Thu, 18 Jul 2013 22:42:14 +0000 (17:42 -0500)]
ARM: OMAP5/DRA7: hwmod: add ADDR_TYPE_RT to bb2d address flags

This is required so that the omap_hwmod_get_mpu_rt_va()
api returns a virtual register base address for the IP.

Change-Id: If9c55cb13f2d3864ee4c287b73dab069ee6f56ff
Signed-off-by: Sundar Raman <a0393242@ti.com>
Signed-off-by: Pradeep Venkatasubbarao <pradeepv@ti.com>
7 years agogc320: gcx: [WA] Allocate MMU page tables as non cached
Sundar Raman [Mon, 22 Jul 2013 14:25:56 +0000 (09:25 -0500)]
gc320: gcx: [WA] Allocate MMU page tables as non cached

In K3.8, the cache flushing APIs for the MMU page tables are not
working correctly. Changed the allocations to non cached to
workaround the problem until the correct root cause is found.

Change-Id: I9391aeacac6a24f45c11daac3a7ea6d5f8d3ff0a
Signed-off-by: Sundar Raman <a0393242@ti.com>
Signed-off-by: Pradeep Venkatasubbarao <pradeepv@ti.com>
7 years agogc320: Added missing programming of MTLB base second time
Alexei Shlychkov [Mon, 22 Jul 2013 14:29:06 +0000 (09:29 -0500)]
gc320: Added  missing programming of MTLB base second time

This patch fixes a crash when running the bvtest test case
second time around. The MTLB base address was not programmed
second time around leading to a bad MMU state. This patch
ensures that the MTLB base is programmed correctly.

Change-Id: I01bd88fc09dec608b3470a012a4f84332942c110
Signed-off-by: Alexei Shlychkov <shlychkov@gmail.com>
Signed-off-by: Sundar Raman <a0393242@ti.com>
Signed-off-by: Pradeep Venkatasubbarao <pradeepv@ti.com>
7 years agogc320: adding gcxxx support in Makefiles
David Sin [Mon, 28 Jan 2013 16:50:54 +0000 (18:50 +0200)]
gc320: adding gcxxx support in Makefiles

Ported from k3.0, commit Id 6c14dfc5c011ce3
[ David Sin <davidsin@ti.com> ]

Change-Id: I9a923d83fbd332b58b2cb990568ac052c66efb95
Signed-off-by: Volodymyr Mieshkov <volodymyr.mieshkov@ti.com>
Signed-off-by: Sundar Raman <sunds@ti.com>
Signed-off-by: Pradeep Venkatasubbarao <pradeepv@ti.com>
7 years agogc320: Adapt GC320 driver for K3.8
Sundar Raman [Thu, 18 Jul 2013 22:40:57 +0000 (17:40 -0500)]
gc320: Adapt GC320 driver for K3.8

Modified SOC checks and a few other minor changes.

Change-Id: I6b1d8ca49bcd87c81e9ca51e25f5219460956f4c
Signed-off-by: Sundar Raman <a0393242@ti.com>
Signed-off-by: Pradeep Venkatasubbarao <pradeepv@ti.com>
7 years agodevices: Initialize GC320 as part of devices init
Sundar Raman [Thu, 18 Jul 2013 22:37:40 +0000 (17:37 -0500)]
devices: Initialize GC320 as part of devices init

With K3.8, devices.c is used to initialize platform
devices. Added GC320 initialization here so that it is
done as part of bootup.

Change-Id: I62817b60d8703afb3d4a13107c00158fe79a7530
Signed-off-by: Sundar Raman <a0393242@ti.com>
Signed-off-by: Pradeep Venkatasubbarao <pradeepv@ti.com>
7 years agoplatform_data: Added platform data for GC320
Sundar Raman [Thu, 18 Jul 2013 22:36:29 +0000 (17:36 -0500)]
platform_data: Added platform data for GC320

The omap_gcx.h file which contains platform specific
structures for gc320 IP is being added as part of this
patch

Change-Id: Ib5069a859547932f9c6a46be2006f50996a86f0f
Signed-off-by: Sundar Raman <a0393242@ti.com>
Signed-off-by: Pradeep Venkatasubbarao <pradeepv@ti.com>
7 years agogc320: OMAP4: Adding cache-2dmanager
Jack Yen [Mon, 24 Dec 2012 12:59:51 +0000 (14:59 +0200)]
gc320: OMAP4: Adding cache-2dmanager

Based on k3.0 commit:
p-android-omap-3.0: 43eb373199a [Jack Yen <jyen@ti.com>]

Change-Id: I094b5070ab565b402d242daa6e1a3cb14973d8ac
Signed-off-by: Jack Yen <jyen@ti.com>
Signed-off-by: Volodymyr Mieshkov <volodymyr.mieshkov@ti.com>
Signed-off-by: Sundar Raman <sunds@ti.com>
Signed-off-by: Pradeep Venkatasubbarao <pradeepv@ti.com>
7 years agoInitial Open Color format Definitions (OCD).
David Sin [Tue, 8 Nov 2011 20:55:17 +0000 (14:55 -0600)]
Initial Open Color format Definitions (OCD).

OCD is a set of Open Color format Definitions.  Color formats
are used in everything from BLTers to video codecs,
and from cameras to displays.  But although there are
plenty of common formats, the definition of the code specifying
them is never the same.

OCD attempts to solve this problem.  It provides logical color
format codes, and is extensible.

Change-Id: I56ef49f451ab9c194418500d833d204a83f66edd
Signed-off-by: Rick Tillery <rtillery@ti.com>
Signed-off-by: David Sin <davidsin@ti.com>
Signed-off-by: Rodrigo Obregon <robregon@ti.com>
Signed-off-by: Sundar Raman <sunds@ti.com>
7 years agoOMAP4:GCXXX: Fixing build warnings
Volodymyr Mieshkov [Tue, 29 Jan 2013 16:15:39 +0000 (18:15 +0200)]
OMAP4:GCXXX: Fixing build warnings

Next build warnings are fixed:

drivers/misc/gcx/gccore/gcmain.c: In function 'gc_map':
drivers/misc/gcx/gccore/gcmain.c:690: warning: assignment from incompatible pointer type
drivers/misc/gcx/gccore/gcmmu.c: In function 'virt2phys':
drivers/misc/gcx/gccore/gcmmu.c:255: warning: passing argument 1 of 'pmd_offset' from incompatible pointer type
omap/arch/arm/include/asm/pgtable-2level.h:156: note: expected 'struct pud_t *' but argument is of type 'pmdval_t (*)[2]'

Change-Id: Ifd90c99f248fe66e0cfe887a4ec535b07637adef
Signed-off-by: Volodymyr Mieshkov <volodymyr.mieshkov@ti.com>
Signed-off-by: Pradeep Venkatasubbarao <pradeepv@ti.com>
7 years agoOMAP4: adding Vivante Corp 2/3D gcxxx driver files
David Sin [Thu, 17 Jan 2013 16:00:33 +0000 (18:00 +0200)]
OMAP4: adding Vivante Corp 2/3D gcxxx driver files

Driver files to enable Vivante Corp 2/3D gcxxx hardware.

Change-Id: I1a978bce85cc93e38b4a6b9d1811366feea7bb1b
Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
Signed-off-by: David Sin <davidsin@ti.com>
Signed-off-by: Volodymyr Mieshkov <volodymyr.mieshkov@ti.com>
Signed-off-by: Pradeep Venkatasubbarao <pradeepv@ti.com>
7 years agoOMAP4: adding BLTsville header files
David Sin [Mon, 24 Dec 2012 13:14:43 +0000 (15:14 +0200)]
OMAP4: adding BLTsville header files

Change-Id: If573d2ea6f0d6e858e2dae94a629458d2d767cc5
Signed-off-by: David Sin <davidsin@ti.com>
Signed-off-by: Volodymyr Mieshkov <volodymyr.mieshkov@ti.com>
Signed-off-by: Sundar Raman <sunds@ti.com>
7 years agoInitial BLTsville API definition.
David Sin [Tue, 8 Nov 2011 20:55:17 +0000 (14:55 -0600)]
Initial BLTsville API definition.

BLTsville is the open 2-D API designed to provide an abstract
interface for both hardware and software 2-D implementations.

BLTs (BLock Transfers) involve the moving around of blocks
(rectangles) of pixels.

Change-Id: Ifced4987169acf56bfc6cf4fd6ce7fec9fcda993
Signed-off-by: Rick Tillery <rtillery@ti.com>
Signed-off-by: David Sin <davidsin@ti.com>
Signed-off-by: Rodrigo Obregon <robregon@ti.com>
Signed-off-by: Sundar Raman <sunds@ti.com>
7 years agoMerge branch 'dss' into p-ti-linux-3.8.y-video
Praneeth Bajjuri [Fri, 6 Sep 2013 22:27:23 +0000 (17:27 -0500)]
Merge branch 'dss' into p-ti-linux-3.8.y-video

* dss:
  OMAPDSS: DSS: Fix file permissions from 755 to 644
  OMAPDSS: DISPC: remove revision check on arbitration
  OMAPDSS: DISPC: Add support for global MFLAG feature
  OMAPDSS: DISPC : Enable GFX pipeline arbitration

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
7 years agoOMAPDSS: DSS: Fix file permissions from 755 to 644
Praneeth Bajjuri [Fri, 6 Sep 2013 21:55:38 +0000 (16:55 -0500)]
OMAPDSS: DSS: Fix file permissions from 755 to 644

Fix file permission back to 644 on dss/apply.c

caused by
commit ad56f9294f1a75e63bfad1f6b85135f0a8a6b582
OMAPDSS: DSS: Fix null pointer crash in DSS

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
7 years agodefconfig: omap2plus: Enable RPMSG RPC Driver
Praneeth Bajjuri [Thu, 5 Sep 2013 18:34:59 +0000 (13:34 -0500)]
defconfig: omap2plus: Enable RPMSG RPC Driver

Enable rpmsg Remote Procedure Call driver.

rpmsg driver that exposes the Remote Procedure Call API to
user space, in order to allow applications to distribute
remote calls to more power-efficient remote processors. This is
currently available only on OMAP4+ systems.

Change-Id: Ia3027ace4c87a0c5e3b746640927076f1c8bbd23
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
7 years agodefconfig: omap2plus: Enable OMAP Remote Proc
Praneeth Bajjuri [Mon, 26 Aug 2013 21:30:55 +0000 (16:30 -0500)]
defconfig: omap2plus: Enable OMAP Remote Proc

Enable by default OMAP remote processor via the remote processor
framework.

This is needed in order to enable multimedia usecases to run
on your platform

(multimedia codecs are offloaded to remote DSP processors using this framework).

Also Enable Support for
[*]   OMAP remoteproc support for IPU
[*]   OMAP remoteproc support for DSP
[*]   OMAP remoteproc support for IPU1 (DRA7xx only)
[*]   OMAP remoteproc support for DSP2 (DRA7xx only)

Change-Id: I16b4d5b527d61ba5d805b3143457bec8b1125bbc
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
7 years agodefconfig: omap2plus: Enable IOMMU Support
Praneeth Bajjuri [Mon, 26 Aug 2013 21:26:29 +0000 (16:26 -0500)]
defconfig: omap2plus: Enable IOMMU Support

Enable IO Memory Management Units support into the kernel.

These devices usually allow to remap DMA requests and/or remap
interrupts from other devices on the system.

Change-Id: Ic4e27f23278d235b55983ea93cd2257c9230c080
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
7 years agodefconfig: omap2plus: Enable CMA
Praneeth Bajjuri [Mon, 26 Aug 2013 21:19:20 +0000 (16:19 -0500)]
defconfig: omap2plus: Enable CMA

This enables the Contiguous Memory Allocator which allows drivers
to allocate big physically-contiguous blocks of memory for use with
hardware components that do not support I/O map nor scatter-gather.

CMA must be selected before OMAP_REMOTEPROC can be made available.

Change-Id: I1a6b177563ca97daf9735fab9fa8532efd7899b3
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
7 years agoMerge branch 'ti2013.04.02-rpmsg-3.8.y' of git://git.ti.com/rpmsg/rpmsg into p-ti...
Praneeth Bajjuri [Thu, 5 Sep 2013 11:20:18 +0000 (06:20 -0500)]
Merge branch 'ti2013.04.02-rpmsg-3.8.y' of git://git.ti.com/rpmsg/rpmsg into p-ti-linux-3.8.y

* 'ti2013.04.02-rpmsg-3.8.y' of git://git.ti.com/rpmsg/rpmsg:
  net/rpmsg: add support for new rpmsg sockets
  rpmsg: add api for creating and deleting rpmsg channels
  staging: omapdrm: flush the mapped page in kmap/kunmap
  rpmsg: rpc: introduce a new rpmsg_rpc driver
  remoteproc: add api for retrieving the rproc platform id
  rpmsg: add a description field
  rpmsg: add api for getting underlying the virtio device
  rpmsg: reset the virtio device after del_vqs
  rpmsg: disable hex dump traces
  drivers/rpmsg/virtio_rpmsg_bus.c: fix error return code in rpmsg_probe()
  rpmsg: process _all_ pending messages in rpmsg_recv_done
  drivers/rpmsg: remove depends on CONFIG_EXPERIMENTAL
  ARM: OMAP: remoteproc: request timers for DRA7xx DSP1 processor

Change-Id: If3de33a27f1ff596abce40af6e3d9d9c5c173e9c
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
7 years agoOMAPDSS: HDMI: set regulator voltage to required level
Somnath Mukherjee [Fri, 30 Aug 2013 12:41:52 +0000 (18:11 +0530)]
OMAPDSS: HDMI: set regulator voltage to required level

It's not sufficient to request the regulator. We need to set the
IO voltage as well. The IO voltages are being requested from
<soc>.dtsi files.

Change-Id: I64a935d0ecc49b65ba38fc76382c3b28445fbfa6
Signed-off-by: Somnath Mukherjee <somnath@ti.com>
7 years agoARM: DRA7: dts: Moved the reference to regulator for hdmi supply
Somnath Mukherjee [Fri, 30 Aug 2013 12:32:57 +0000 (18:02 +0530)]
ARM: DRA7: dts: Moved the reference to regulator for hdmi supply

Moved the reference to ldo3 regulator required for hdmi, to board
specific dts file.

Change-Id: If909a5b95aff19f53bada098b0d4160b0db70b28
Signed-off-by: Somnath Mukherjee <somnath@ti.com>
7 years agoARM: dts: OMAP5uevm: Use LDO4 for DSI
Nishanth Menon [Wed, 14 Aug 2013 16:59:14 +0000 (11:59 -0500)]
ARM: dts: OMAP5uevm: Use LDO4 for DSI

Regulator for omap5-uevm is LDO4 and not LDO7. Further, LDO
configuration should be done in the board dts file, and not in SoC
generic DTSI.

Change-Id: I436c0a9f904e7b291c911d9be861464f041b1a69
Signed-off-by: Nishanth Menon <nm@ti.com>
7 years agoARM: dts: OMAP5uevm: Use LDO4 for HDMI
Somnath Mukherjee [Tue, 23 Jul 2013 09:35:43 +0000 (15:05 +0530)]
ARM: dts: OMAP5uevm: Use LDO4 for HDMI

Regulator for omap5-uevm is LDO4 and not LDO7. Further, LDO configuration
should be done in the board dts file, and not in SoC generic DTSI.

Change-Id: I99591fd79caa700fa52d8b5c3db3d321e4b109bc
Signed-off-by: Somnath Mukherjee <somnath@ti.com>
7 years agoMerge branch 'rpmsg-linux-3.8.y' of git://git.ti.com/rpmsg/rpmsg into ti2013.04.02...
Suman Anna [Thu, 5 Sep 2013 08:31:50 +0000 (03:31 -0500)]
Merge branch 'rpmsg-linux-3.8.y' of git://git.ti.com/rpmsg/rpmsg into ti2013.04.02-rpmsg-3.8.y

Pull in two new rpmsg client drivers: rpmsg-rpc & rpmsg-proto.

Also, includes a patch in drm for proper cache flushing of the
pages where the rpc pointer translations are handled in the rpmsg-rpc
driver code.

* 'rpmsg-linux-3.8.y' of git://git.ti.com/rpmsg/rpmsg:
  net/rpmsg: add support for new rpmsg sockets
  rpmsg: add api for creating and deleting rpmsg channels
  staging: omapdrm: flush the mapped page in kmap/kunmap
  rpmsg: rpc: introduce a new rpmsg_rpc driver

Signed-off-by: Suman Anna <s-anna@ti.com>
7 years agonet/rpmsg: add support for new rpmsg sockets
Ohad Ben-Cohen [Tue, 12 Mar 2013 00:01:23 +0000 (17:01 -0700)]
net/rpmsg: add support for new rpmsg sockets

Add the support for a new socket address and protocol
family: remote-processor sockets. The rpmsg protocol
driver provides the necessary support to expose a
rpmsg communication channel through the socket API
to userspace.

This patch is created from the initial rpmsg socket
support patch by Ohad on an older kernel.

Tested-by: G Anthony <a0783926@ti.com>
Signed-off-by: Ohad Ben Cohen <ohad@wizery.com>
[rtivy@ti.com: forward port and add .bind functionality]
Signed-off-by: Robert Tivy <rtivy@ti.com>
[s-anna@ti.com: rproc id retrieval logic and cleanup]
Signed-off-by: Suman Anna <s-anna@ti.com>
7 years agorpmsg: add api for creating and deleting rpmsg channels
Robert Tivy [Sat, 17 Aug 2013 00:23:31 +0000 (19:23 -0500)]
rpmsg: add api for creating and deleting rpmsg channels

The rpmsg channels are currently created and deleted only through
the device announcements from a remote processor. Two new exported
functions, rpmsg_create_channel and rpmsg_destroy_channel, are added
to be able to create and delete a rpmsg channel on a particular
virtual processor.

This is required for creating/deleting a channel from the HLOS-side
(needed by the rpmsg socket driver).

Signed-off-by: Robert Tivy <rtivy@ti.com>
[s-anna@ti.com: add delete channel api and documentation]
Signed-off-by: Suman Anna <s-anna@ti.com>
7 years agostaging: omapdrm: flush the mapped page in kmap/kunmap
Erik Rainey [Tue, 17 Apr 2012 03:04:00 +0000 (22:04 -0500)]
staging: omapdrm: flush the mapped page in kmap/kunmap

A kernel driver can access a omapdrm/gem backed buffer page through
a cycle of dma_buf_begin_cpu_access, dma_buf_kmap & dma_buf_kunmap,
dma_buf_end_cpu_access function invocations. Any changes to the
buffer by the kernel driver are not reflected properly in RAM,
so flush the cache deliberately in the kmap/kunmap dma_buf ops
implementations of the omapdrm/gem buffers.

Signed-off-by: Erik Rainey <erik.rainey@ti.com>
[s-anna@ti.com: add proper comments and commit description]
Signed-off-by: Suman Anna <s-anna@ti.com>
7 years agorpmsg: rpc: introduce a new rpmsg_rpc driver
Suman Anna [Thu, 28 Feb 2013 20:50:10 +0000 (14:50 -0600)]
rpmsg: rpc: introduce a new rpmsg_rpc driver

The new rpmsg client driver, rpmsg_rpc, is introduced to provide a
framework for userspace applications to execute functions on different
remote processors.

The functions themselves are published by the remote processors by
different libraries. Each set of functions are published and supported
by a corresponding rpmsg server channel, and is exposed to the user-space
as its own device. User-space applications can open this character device,
and execute any of the published functions associated with the device.

The rpmsg-rpc driver allows any function upto 10 arguments with in-built
pointer translation. The kernel-userspace interaction allows any buffer
pointers to be replaced in the marshalled packet, provided the buffers
are obtained from allocators backed by dma_buf framework.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Erik Rainey <erik.rainey@ti.com>
7 years agoMerge branch 'rproc-linux-3.8.y' of git://git.ti.com/rpmsg/remoteproc into ti2013...
Suman Anna [Thu, 5 Sep 2013 07:34:04 +0000 (02:34 -0500)]
Merge branch 'rproc-linux-3.8.y' of git://git.ti.com/rpmsg/remoteproc into ti2013.04.02-rpmsg-3.8.y

* 'rproc-linux-3.8.y' of git://git.ti.com/rpmsg/remoteproc:
  remoteproc: add api for retrieving the rproc platform id
  ARM: OMAP: remoteproc: request timers for DRA7xx DSP1 processor

Signed-off-by: Suman Anna <s-anna@ti.com>
7 years agoMerge branch 'rpmsg-linux-3.8.y' of git://git.ti.com/rpmsg/rpmsg into ti2013.04.02...
Suman Anna [Thu, 5 Sep 2013 07:29:32 +0000 (02:29 -0500)]
Merge branch 'rpmsg-linux-3.8.y' of git://git.ti.com/rpmsg/rpmsg into ti2013.04.02-rpmsg-3.8.y

Merge the base rpmsg tree that includes few fixes and enhancements.
The enhancements are primarily about adding a new descriptor field
to the rpmsg channel device, and for processing all the pending
messages on a virtio_vring upon a kick notification.

* 'rpmsg-linux-3.8.y' of git://git.ti.com/rpmsg/rpmsg:
  rpmsg: add a description field
  rpmsg: add api for getting underlying the virtio device
  rpmsg: reset the virtio device after del_vqs
  rpmsg: disable hex dump traces
  drivers/rpmsg/virtio_rpmsg_bus.c: fix error return code in rpmsg_probe()
  rpmsg: process _all_ pending messages in rpmsg_recv_done
  drivers/rpmsg: remove depends on CONFIG_EXPERIMENTAL

Signed-off-by: Suman Anna <s-anna@ti.com>
7 years agoremoteproc: add api for retrieving the rproc platform id
Suman Anna [Fri, 30 Aug 2013 21:12:39 +0000 (16:12 -0500)]
remoteproc: add api for retrieving the rproc platform id

A new api, rproc_get_platform_id, is added to allow remoteproc/rpmsg
clients to be able to retrieve a fixed id associated with a rproc
device. Each of the rproc's is given an ida index as well, but this
is dynamic depending on the order rproc_alloc is called, and also
depends on what remote processor devices are instantiated. The
platform device id is therefore chosen, with the assumption that
a remoteproc device is assigned a static platform device id.

The OMAP remoteproc devices do satisfy this requirement, since
static platform devices are needed anyway for declaring the
corresponding CMA pools.

Signed-off-by: Suman Anna <s-anna@ti.com>
7 years agoarm/dts: omap5: Add gpu supply
Hemant Hariyani [Mon, 19 Aug 2013 04:32:32 +0000 (10:02 +0530)]
arm/dts: omap5: Add gpu supply

Add smps45 as gpu supply

Change-Id: I158095880f715c3fc88e2412d45dddb5befab1b7
Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com>
Signed-off-by: Subhajit Paul <subhajit_paul@ti.com>