Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754303Ab3J2LHh (ORCPT ); Tue, 29 Oct 2013 07:07:37 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:41253 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752054Ab3J2LHe (ORCPT ); Tue, 29 Oct 2013 07:07:34 -0400 Message-ID: <526F96ED.906@ti.com> Date: Tue, 29 Oct 2013 13:07:25 +0200 From: Tomi Valkeinen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Marek Belisko CC: , , , , "H. Nikolaus Schaller" Subject: Re: [PATCH v2] omapdss: Add new panel driver for Topolly td028ttec1 LCD. References: <1382019258-21000-1-git-send-email-marek@goldelico.com> In-Reply-To: <1382019258-21000-1-git-send-email-marek@goldelico.com> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="iXjLGFov2aTQBSfAQacKKcTSjd2wrjFGN" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 15180 Lines: 465 --iXjLGFov2aTQBSfAQacKKcTSjd2wrjFGN Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 17/10/13 17:14, Marek Belisko wrote: > Signed-off-by: Marek Belisko > Signed-off-by: H. Nikolaus Schaller > --- >=20 > changes from v1: > - reworked to be spi driver instead platform with custom spi bitbang > this configuration was tested with spi_gpio bitbang driver on gta04 b= oard > and works fine (thanks Tomi and Lars-Peter for comments) > - address previous comments >=20 > drivers/video/omap2/displays-new/Kconfig | 6 + > drivers/video/omap2/displays-new/Makefile | 1 + > .../omap2/displays-new/panel-tpo-td028ttec1.c | 486 +++++++++++++= ++++++++ > include/video/omap-panel-data.h | 13 + > 4 files changed, 506 insertions(+) > create mode 100644 drivers/video/omap2/displays-new/panel-tpo-td028tte= c1.c >=20 > diff --git a/drivers/video/omap2/displays-new/Kconfig b/drivers/video/o= map2/displays-new/Kconfig > index 6c90885..1054249 100644 > --- a/drivers/video/omap2/displays-new/Kconfig > +++ b/drivers/video/omap2/displays-new/Kconfig > @@ -56,6 +56,12 @@ config DISPLAY_PANEL_SHARP_LS037V7DW01 > help > LCD Panel used in TI's SDP3430 and EVM boards > =20 > +config DISPLAY_PANEL_TPO_TD028TTEC1 > + tristate "TPO TD028TTEC1 LCD Panel" > + depends on SPI > + help > + LCD panel used in Openmoko. > + > config DISPLAY_PANEL_TPO_TD043MTEA1 > tristate "TPO TD043MTEA1 LCD Panel" > depends on SPI > diff --git a/drivers/video/omap2/displays-new/Makefile b/drivers/video/= omap2/displays-new/Makefile > index 5aeb11b..0323a8a 100644 > --- a/drivers/video/omap2/displays-new/Makefile > +++ b/drivers/video/omap2/displays-new/Makefile > @@ -8,5 +8,6 @@ obj-$(CONFIG_DISPLAY_PANEL_DSI_CM) +=3D panel-dsi-cm.o > obj-$(CONFIG_DISPLAY_PANEL_SONY_ACX565AKM) +=3D panel-sony-acx565akm.o= > obj-$(CONFIG_DISPLAY_PANEL_LGPHILIPS_LB035Q02) +=3D panel-lgphilips-lb= 035q02.o > obj-$(CONFIG_DISPLAY_PANEL_SHARP_LS037V7DW01) +=3D panel-sharp-ls037v7= dw01.o > +obj-$(CONFIG_DISPLAY_PANEL_TPO_TD028TTEC1) +=3D panel-tpo-td028ttec1.o= > obj-$(CONFIG_DISPLAY_PANEL_TPO_TD043MTEA1) +=3D panel-tpo-td043mtea1.o= > obj-$(CONFIG_DISPLAY_PANEL_NEC_NL8048HL11) +=3D panel-nec-nl8048hl11.o= > diff --git a/drivers/video/omap2/displays-new/panel-tpo-td028ttec1.c b/= drivers/video/omap2/displays-new/panel-tpo-td028ttec1.c > new file mode 100644 > index 0000000..5a44d30 > --- /dev/null > +++ b/drivers/video/omap2/displays-new/panel-tpo-td028ttec1.c > @@ -0,0 +1,486 @@ > +/* > + * Toppoly TD028TTEC1 panel support > + * > + * Copyright (C) 2008 Nokia Corporation > + * Author: Tomi Valkeinen > + * > + * Neo 1973 code (jbt6k74.c): > + * Copyright (C) 2006-2007 by OpenMoko, Inc. > + * Author: Harald Welte > + * > + * Ported and adapted from Neo 1973 U-Boot by: > + * H. Nikolaus Schaller > + * > + * This program is free software; you can redistribute it and/or modif= y it > + * under the terms of the GNU General Public License version 2 as publ= ished by > + * the Free Software Foundation. > + * > + * This program is distributed in the hope that it will be useful, but= WITHOUT > + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY = or > + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public Licen= se for > + * more details. > + * > + * You should have received a copy of the GNU General Public License a= long with > + * this program. If not, see . > + */ > + > +#include > +#include > +#include > +#include > +#include