From patchwork Thu Aug 25 04:05:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 1095212 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p7P45Nxm028124 for ; Thu, 25 Aug 2011 04:05:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750829Ab1HYEFb (ORCPT ); Thu, 25 Aug 2011 00:05:31 -0400 Received: from mail-yx0-f174.google.com ([209.85.213.174]:59814 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750728Ab1HYEFa (ORCPT ); Thu, 25 Aug 2011 00:05:30 -0400 Received: by yxj19 with SMTP id 19so1410819yxj.19 for ; Wed, 24 Aug 2011 21:05:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:sender:message-id:to:cc:in-reply-to:references:from:subject :user-agent:mime-version:content-type; bh=SauTymAriK9ZCV0Vb5FsRKa8JaeL9ykl8O+0S4L9oZM=; b=BHcZpRes+uqvxQaL5cprVS6nEhcLQQSSPUkxnahlIpL+MHF8V207y8tkYvbmin0r6C 4GqfFg+7btimKxb74mfrCAE3zYZr7FoGruD++w8cGX8yxqHFXN5a9/FoHjau02srsWlv NJ4ek+H4eIuHrlz3RXjq73pHTfg5bXM1nDHRo= Received: by 10.231.20.170 with SMTP id f42mr11625116ibb.67.1314245130134; Wed, 24 Aug 2011 21:05:30 -0700 (PDT) Received: from morimoto-Dell-XPS420.gmail.com (49.14.32.202.bf.2iij.net [202.32.14.49]) by mx.google.com with ESMTPS id a9sm179422icy.18.2011.08.24.21.05.28 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 24 Aug 2011 21:05:29 -0700 (PDT) Date: Wed, 24 Aug 2011 21:05:29 -0700 (PDT) Message-ID: <87wre2t9tm.wl%kuninori.morimoto.gx@renesas.com> To: Paul Mundt , Magnus , Guennadi Cc: Linux-SH , Kuninori Morimoto In-Reply-To: <8739gquogt.wl%kuninori.morimoto.gx@renesas.com> References: <8739gquogt.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 4/7] fbdev: sh_mipi_dsi: add SH_MIPI_DSI_BL2E flag User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-2022-JP-2?B?R29q?= =?ISO-2022-JP-2?B?GyQoRCtXGyhC?=) APEL/10.8 Emacs/23.2 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 25 Aug 2011 04:05:31 +0000 (UTC) Signed-off-by: Kuninori Morimoto --- drivers/video/sh_mipi_dsi.c | 2 ++ include/video/sh_mipi_dsi.h | 1 + 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/video/sh_mipi_dsi.c b/drivers/video/sh_mipi_dsi.c index b35454e..096c76a 100644 --- a/drivers/video/sh_mipi_dsi.c +++ b/drivers/video/sh_mipi_dsi.c @@ -315,6 +315,8 @@ static int __init sh_mipi_setup(struct sh_mipi *mipi, * Non-burst mode with sync pulses: VSE and HSE are output, * HSA period allowed, no commands in LP */ + if (pdata->flags & SH_MIPI_DSI_BL2E) + vmctr2 |= 1 << 17; if (pdata->flags & SH_MIPI_DSI_HSABM) vmctr2 |= 1 << 5; if (pdata->flags & SH_MIPI_DSI_HBPBM) diff --git a/include/video/sh_mipi_dsi.h b/include/video/sh_mipi_dsi.h index 86a72c0..58b78f8 100644 --- a/include/video/sh_mipi_dsi.h +++ b/include/video/sh_mipi_dsi.h @@ -30,6 +30,7 @@ struct sh_mobile_lcdc_chan_cfg; #define SH_MIPI_DSI_HSABM (1 << 0) #define SH_MIPI_DSI_HBPBM (1 << 1) #define SH_MIPI_DSI_HFPBM (1 << 2) +#define SH_MIPI_DSI_BL2E (1 << 3) struct sh_mipi_dsi_info { enum sh_mipi_dsi_data_fmt data_format;