All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Aguirre, Sergio" <saaguirre@ti.com>
To: "G, Manjunath Kondaiah" <manjugk@ti.com>,
	"Y, Kishore" <kishore.y@ti.com>,
	Tomi Valkeinen <tomi.valkeinen@nokia.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"Hiremath, Vaibhav" <hvaibhav@ti.com>,
	Grazvydas Ignotas <notasas@gmail.com>
Subject: RE: [PATCH 1/2 V2] OMAP: DSS: Add display board file for zoom boards
Date: Thu, 25 Feb 2010 10:10:27 -0600	[thread overview]
Message-ID: <A24693684029E5489D1D202277BE89445398E7A7@dlee02.ent.ti.com> (raw)
In-Reply-To: <E0D41E29EB0DAC4E9F3FF173962E9E94026B7E8C25@dbde02.ent.ti.com>

Manjunath,

From: linux-omap-owner@vger.kernel.org [mailto:linux-omap-
owner@vger.kernel.org] On Behalf Of G, Manjunath Kondaiah
Sent: Thursday, February 11, 2010 5:35 AM
> From: linux-omap-owner@vger.kernel.org
> [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of Y, Kishore
> Sent: Thursday, February 11, 2010 3:33 PM

<snip>

> > +
> > +static void zoom_lcd_tv_panel_init(void)
> > +{
> > +	int ret;
> > +	unsigned char lcd_panel_reset_gpio;
> > +
> > +	if (omap_rev() > OMAP3430_REV_ES3_0) {
> > +		/* Production Zoom2 board:
> > +		 * GPIO-96 is the LCD_RESET_GPIO
> > +		 */
> > +		lcd_panel_reset_gpio = LCD_PANEL_RESET_GPIO_PROD;
> > +	} else {
> > +		/* Pilot Zoom2 board:
> > +		 * GPIO-55 is the LCD_RESET_GPIO
> > +		 */
> > +		lcd_panel_reset_gpio = LCD_PANEL_RESET_GPIO_PILOT;
> > +	}
> 
> How about:
> 
> lcd_panel_reset_gpio = (omap_rev() > OMAP3430_REV_ES3_0) ?
> LCD_PANEL_RESET_GPIO_PROD :
> 						LCD_PANEL_RESET_GPIO_PILOT;

This approach has been discussed many times before, and found incorrect. There is no way to auto-detect valid GPIO for reset as of now. For example: Zoom Pilot + 3630 SOM case will fail here.

I'll push again for my thoughts on this one...

There MUST be a configurable option in kernel menuconfig to select the board revision (Pilot, pre-production). That is the only clean way I can see this could actually work.

Regards,
Sergio

<snip>

      reply	other threads:[~2010-02-25 16:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-11 10:02 [PATCH 1/2 V2] OMAP: DSS: Add display board file for zoom boards Y, Kishore
2010-02-11 11:35 ` G, Manjunath Kondaiah
2010-02-25 16:10   ` Aguirre, Sergio [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A24693684029E5489D1D202277BE89445398E7A7@dlee02.ent.ti.com \
    --to=saaguirre@ti.com \
    --cc=hvaibhav@ti.com \
    --cc=kishore.y@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=manjugk@ti.com \
    --cc=notasas@gmail.com \
    --cc=tomi.valkeinen@nokia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.