aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorDan Murphy <dmurphy@ti.com>2011-07-25 07:52:14 -0500
committerZiyan <jaraidaniel@gmail.com>2015-04-18 01:24:27 +0200
commit2a3620fad728f1bdb5c858cad6bcc05033347a35 (patch)
tree19a032269690c09f4538cfc2600c855c07ddf538 /drivers/video
parent5731d74f3f7ed15625e83d96cc470b62b5714f60 (diff)
downloadkernel_samsung_tuna-2a3620fad728f1bdb5c858cad6bcc05033347a35.zip
kernel_samsung_tuna-2a3620fad728f1bdb5c858cad6bcc05033347a35.tar.gz
kernel_samsung_tuna-2a3620fad728f1bdb5c858cad6bcc05033347a35.tar.bz2
[DSI] HACK: Add check for blaze to not set second OCP Width
This is a HACK as performing this command on blaze causes DSI errors and does not allow blaze to display anything for now cause it to skip on blaze but allow this on tablet video displays Signed-off-by: Dan Murphy <dmurphy@ti.com>
Diffstat (limited to 'drivers/video')
-rwxr-xr-xdrivers/video/omap2/dss/dsi.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c
index 6d281ab..b8e0410 100755
--- a/drivers/video/omap2/dss/dsi.c
+++ b/drivers/video/omap2/dss/dsi.c
@@ -40,6 +40,7 @@
#include <video/omapdss.h>
#include <plat/clock.h>
+#include <plat/omap_apps_brd_id.h>
#include "dss.h"
#include "dss_features.h"
@@ -2787,9 +2788,16 @@ static void dsi_vc_initial_config(struct platform_device *dsidev, int channel)
r = FLD_MOD(r, 1, 8, 8); /* ECC_TX_EN */
r = FLD_MOD(r, 0, 9, 9); /* MODE_SPEED, high speed on/off */
if (dss_has_feature(FEAT_DSI_VC_OCP_WIDTH))
- r = FLD_MOD(r, 3, 11, 10); /* OCP_WIDTH = 32 bit */
- if (channel == 0)
- r = FLD_MOD(r, 1, 11, 10); /* OCP_WIDTH = 32 bit */
+ r = FLD_MOD(r, 3, 11, 10); /* OCP_WIDTH = 32 bit */
+
+ /* TO DO: This is a HACK as performing this command on blaze
+ * causes DSI errors and does not allow blaze to display anything
+ * for now cause it to skip on blaze but allow this on tablet video
+ * displays */
+ if (!omap_is_board_version(OMAP4_BLAZE_ID)) {
+ if (channel == 0)
+ r = FLD_MOD(r, 1, 11, 10); /* OCP_WIDTH = 32 bit */
+ }
r = FLD_MOD(r, 4, 29, 27); /* DMA_RX_REQ_NB = no dma */
r = FLD_MOD(r, 4, 23, 21); /* DMA_TX_REQ_NB = no dma */