From patchwork Sun May 23 14:00:43 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 101737 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4NE0Y0O025291 for ; Sun, 23 May 2010 14:00:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754308Ab0EWOAc (ORCPT ); Sun, 23 May 2010 10:00:32 -0400 Received: from mail.gmx.net ([213.165.64.20]:36377 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754363Ab0EWOAa (ORCPT ); Sun, 23 May 2010 10:00:30 -0400 Received: (qmail invoked by alias); 23 May 2010 14:00:27 -0000 Received: from p57BD181B.dip0.t-ipconnect.de (EHLO axis700.grange) [87.189.24.27] by mail.gmx.net (mp051) with SMTP; 23 May 2010 16:00:27 +0200 X-Authenticated: #20450766 X-Provags-ID: V01U2FsdGVkX1+tHy9GVvGtv8Se97TUNUH/WiLKcPPxdGJB4PBPuW gR742ytphHz0C8 Received: from lyakh (helo=localhost) by axis700.grange with local-esmtp (Exim 4.63) (envelope-from ) id 1OGBjP-00012h-Lj; Sun, 23 May 2010 16:00:43 +0200 Date: Sun, 23 May 2010 16:00:43 +0200 (CEST) From: Guennadi Liakhovetski To: "linux-sh@vger.kernel.org" cc: Magnus Damm , "linux-fbdev, @vger.kernel.org" , "lin, ux-omap@vger.kernel.org" , "Syrjala Ville (Nokia-D/Helsinki)" , Tomi Valkeinen , Paul Mundt Subject: [PATCH 4/5 v3] sh-mobile: add support for displays, connected over the MIPI bus In-Reply-To: Message-ID: References: MIME-Version: 1.0 X-Y-GMX-Trusted: 0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sun, 23 May 2010 14:00:35 +0000 (UTC) diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 6e16244..773c4a6 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -1879,6 +1879,13 @@ config FB_W100 If unsure, say N. +config SH_MIPI_DSI + tristate + depends on (SUPERH || ARCH_SHMOBILE) && HAVE_CLK + +config SH_LCD_MIPI_DSI + bool + config FB_SH_MOBILE_LCDC tristate "SuperH Mobile LCDC framebuffer support" depends on FB && (SUPERH || ARCH_SHMOBILE) && HAVE_CLK @@ -1887,6 +1894,7 @@ config FB_SH_MOBILE_LCDC select FB_SYS_IMAGEBLIT select FB_SYS_FOPS select FB_DEFERRED_IO + select SH_MIPI_DSI if SH_LCD_MIPI_DSI ---help--- Frame buffer driver for the on-chip SH-Mobile LCD controller. diff --git a/drivers/video/Makefile b/drivers/video/Makefile index ddc2af2..3c3bf86 100644 --- a/drivers/video/Makefile +++ b/drivers/video/Makefile @@ -123,6 +123,7 @@ obj-$(CONFIG_FB_IBM_GXT4500) += gxt4500.o obj-$(CONFIG_FB_PS3) += ps3fb.o obj-$(CONFIG_FB_SM501) += sm501fb.o obj-$(CONFIG_FB_XILINX) += xilinxfb.o +obj-$(CONFIG_SH_MIPI_DSI) += sh_mipi_dsi.o obj-$(CONFIG_FB_SH_MOBILE_LCDC) += sh_mobile_lcdcfb.o obj-$(CONFIG_FB_OMAP) += omap/ obj-y += omap2/ diff --git a/drivers/video/sh_mipi_dsi.c b/drivers/video/sh_mipi_dsi.c new file mode 100644 index 0000000..017ae9f --- /dev/null +++ b/drivers/video/sh_mipi_dsi.c @@ -0,0 +1,505 @@ +/* + * Renesas SH-mobile MIPI DSI support + * + * Copyright (C) 2010 Guennadi Liakhovetski + * + * This is free software; you can redistribute it and/or modify + * it under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +#include