From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vikas Sajjan Subject: Re: [PATCH/RFC v3 08/19] video: display: Add MIPI DBI bus support Date: Wed, 4 Sep 2013 18:22:45 +0530 Message-ID: References: <1376068510-30363-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> <1376068510-30363-9-git-send-email-laurent.pinchart+renesas@ideasonboard.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) by gabe.freedesktop.org (Postfix) with ESMTP id CAD7EE6D57 for ; Wed, 4 Sep 2013 05:53:06 -0700 (PDT) Received: by mail-la0-f47.google.com with SMTP id eo20so235993lab.20 for ; Wed, 04 Sep 2013 05:53:05 -0700 (PDT) In-Reply-To: <1376068510-30363-9-git-send-email-laurent.pinchart+renesas@ideasonboard.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Laurent Pinchart Cc: linux-fbdev@vger.kernel.org, Sebastien Guiriec , DRI mailing list , Jesse Barnes , Benjamin Gaignard , Tom Gall , Kyungmin Park , Tomi Valkeinen , linux-media@vger.kernel.org, Stephen Warren , Mark Zhang , Alexandre Courbot , Ragesh Radhakrishnan , Thomas Petazzoni , Sunil Joshi , Maxime Ripard , Marcus Lorentzon List-Id: dri-devel@lists.freedesktop.org Hi Laurent, On 9 August 2013 22:44, Laurent Pinchart wrote: > MIPI DBI is a configurable-width parallel display bus that transmits > commands and data. > > Add a new DBI Linux bus type that implements the usual bus > infrastructure (including devices and drivers (un)registration and > matching, and bus configuration and access functions). > > Signed-off-by: Laurent Pinchart > --- > drivers/video/display/Kconfig | 8 ++ > drivers/video/display/Makefile | 1 + > drivers/video/display/mipi-dbi-bus.c | 234 +++++++++++++++++++++++++++++++++++ > include/video/display.h | 4 + > include/video/mipi-dbi-bus.h | 125 +++++++++++++++++++ > 5 files changed, 372 insertions(+) > create mode 100644 drivers/video/display/mipi-dbi-bus.c > create mode 100644 include/video/mipi-dbi-bus.h > > diff --git a/drivers/video/display/Kconfig b/drivers/video/display/Kconfig > index 1d533e7..f7532c1 100644 > --- a/drivers/video/display/Kconfig > +++ b/drivers/video/display/Kconfig > @@ -2,3 +2,11 @@ menuconfig DISPLAY_CORE > tristate "Display Core" > ---help--- > Support common display framework for graphics devices. > + > +if DISPLAY_CORE > + > +config DISPLAY_MIPI_DBI > + tristate > + default n > + > +endif # DISPLAY_CORE > diff --git a/drivers/video/display/Makefile b/drivers/video/display/Makefile > index b907aad..59022d2 100644 > --- a/drivers/video/display/Makefile > +++ b/drivers/video/display/Makefile > @@ -1,3 +1,4 @@ > display-y := display-core.o \ > display-notifier.o > obj-$(CONFIG_DISPLAY_CORE) += display.o > +obj-$(CONFIG_DISPLAY_MIPI_DBI) += mipi-dbi-bus.o > diff --git a/drivers/video/display/mipi-dbi-bus.c b/drivers/video/display/mipi-dbi-bus.c > new file mode 100644 > index 0000000..791fb4d > --- /dev/null > +++ b/drivers/video/display/mipi-dbi-bus.c > @@ -0,0 +1,234 @@ > +/* > + * MIPI DBI Bus > + * > + * Copyright (C) 2012 Renesas Solutions Corp. > + * > + * Contacts: Laurent Pinchart > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License version 2 as > + * published by the Free Software Foundation. > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include