All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roger Quadros <roger.quadros@nokia.com>
To: "ext G, Manjunath Kondaiah" <manjugk@ti.com>
Cc: "tony@atomide.com" <tony@atomide.com>,
	"Valkeinen Tomi (Nokia-D/Helsinki)" <Tomi.Valkeinen@nokia.com>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"linux-fbdev@vger.kernel.org" <linux-fbdev@vger.kernel.org>
Subject: Re: [PATCH 1/5] OMAP: RX51: Add LCD Panel support
Date: Tue, 23 Mar 2010 13:55:45 +0000	[thread overview]
Message-ID: <4BA8C861.4080501@nokia.com> (raw)
In-Reply-To: <E0D41E29EB0DAC4E9F3FF173962E9E94026F1D1D6C@dbde02.ent.ti.com>

Hi,

ext G, Manjunath Kondaiah wrote:
> 
>> -----Original Message-----
>> From: linux-omap-owner@vger.kernel.org 
>> [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of Roger Quadros
>> Sent: Tuesday, March 23, 2010 3:26 PM
>> To: tony@atomide.com
>> Cc: Tomi.Valkeinen@nokia.com; linux-omap@vger.kernel.org; 
>> linux-fbdev@vger.kernel.org
>> Subject: [PATCH 1/5] OMAP: RX51: Add LCD Panel support
>>
>> From: Roger Quadros <roger.quadros@nokia.com>
>>
>> Adds basic support for LCD Panel on Nokia N900
>>
>> Signed-off-by: Roger Quadros <roger.quadros@nokia.com>
>> ---
>>  arch/arm/mach-omap2/Makefile                 |    1 +
>>  arch/arm/mach-omap2/board-rx51-peripherals.c |   13 ++++
>>  arch/arm/mach-omap2/board-rx51-video.c       |   95 
>> ++++++++++++++++++++++++++
>>  3 files changed, 109 insertions(+), 0 deletions(-)  create 
>> mode 100644 arch/arm/mach-omap2/board-rx51-video.c
>>
>> diff --git a/arch/arm/mach-omap2/Makefile 
>> b/arch/arm/mach-omap2/Makefile index 4b9fc57..b03cbb4 100644
>> --- a/arch/arm/mach-omap2/Makefile
>> +++ b/arch/arm/mach-omap2/Makefile
>> @@ -122,6 +122,7 @@ obj-$(CONFIG_MACH_NOKIA_N8X0)		
>> += board-n8x0.o
>>  obj-$(CONFIG_MACH_NOKIA_RX51)		+= board-rx51.o \
>>  					   board-rx51-sdram.o \
>>  					   board-rx51-peripherals.o \
>> +					   board-rx51-video.o \
>>  					   hsmmc.o
>>  obj-$(CONFIG_MACH_OMAP_ZOOM2)		+= board-zoom2.o \
>>  					   board-zoom-peripherals.o \
>> diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c 
>> b/arch/arm/mach-omap2/board-rx51-peripherals.c
>> index 4377a4c..f404537 100644
>> --- a/arch/arm/mach-omap2/board-rx51-peripherals.c
>> +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c
>> @@ -45,6 +45,7 @@
>>  /* list all spi devices here */
>>  enum {
>>  	RX51_SPI_WL1251,
>> +	RX51_SPI_MIPID,		/* LCD panel */
>>  };
>>  
>>  static struct wl12xx_platform_data wl1251_pdata; @@ -54,6 
>> +55,11 @@ static struct omap2_mcspi_device_config 
>> wl1251_mcspi_config = {
>>  	.single_channel	= 1,
>>  };
>>  
>> +static struct omap2_mcspi_device_config mipid_mcspi_config = {
>> +	.turbo_mode	= 0,
> 
> Any specific reason for not enabling turbo mode? 
> It will increase throughput if it is configured in single channel mode.
> 
No specific reason. That was the original configuration, in previous versions of 
the code. It shouldn't make much difference as mipid is only used for panel
detection, enable/disable, and backlight control. Need to test if it works with 
turbo mode.

>> +	.single_channel	= 1,
>> +};
>> +
>>  static struct spi_board_info 
>> rx51_peripherals_spi_board_info[] __initdata = {
>>  	[RX51_SPI_WL1251] = {
>>  		.modalias		= "wl1251",

>> +static int __init rx51_video_init(void) {
>> +	if (!machine_is_nokia_rx51())
>> +		return 0;
>> +
>> +	if (omap_mux_init_gpio(RX51_LCD_RESET_GPIO, OMAP_PIN_OUTPUT)) {
>> +		pr_err("%s cannot configure MUX for LCD 
>> RESET\n", __func__);
>> +		return 0;
>> +	}
>> +
>> +	if (gpio_request(RX51_LCD_RESET_GPIO, "LCD ACX565AKM reset")) {
>> +		pr_err("%s failed to get LCD Reset GPIO\n", __func__);
>> +		return 0;
>> +	}
>> +
>> +	gpio_direction_output(RX51_LCD_RESET_GPIO, 1);
>> +
>> +	platform_add_devices(rx51_video_devices,
>> +				ARRAY_SIZE(rx51_video_devices));
>> +	return 0;
>> +}
> 
> Since this functional always returns 0, you can make return value of this 
> function as void.
> 

I guess it is better to return non zero on failure paths then.

thanks.
-roger

WARNING: multiple messages have this Message-ID (diff)
From: Roger Quadros <roger.quadros@nokia.com>
To: "ext G, Manjunath Kondaiah" <manjugk@ti.com>
Cc: "tony@atomide.com" <tony@atomide.com>,
	"Valkeinen Tomi (Nokia-D/Helsinki)" <Tomi.Valkeinen@nokia.com>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"linux-fbdev@vger.kernel.org" <linux-fbdev@vger.kernel.org>
Subject: Re: [PATCH 1/5] OMAP: RX51: Add LCD Panel support
Date: Tue, 23 Mar 2010 15:55:45 +0200	[thread overview]
Message-ID: <4BA8C861.4080501@nokia.com> (raw)
In-Reply-To: <E0D41E29EB0DAC4E9F3FF173962E9E94026F1D1D6C@dbde02.ent.ti.com>

Hi,

ext G, Manjunath Kondaiah wrote:
> 
>> -----Original Message-----
>> From: linux-omap-owner@vger.kernel.org 
>> [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of Roger Quadros
>> Sent: Tuesday, March 23, 2010 3:26 PM
>> To: tony@atomide.com
>> Cc: Tomi.Valkeinen@nokia.com; linux-omap@vger.kernel.org; 
>> linux-fbdev@vger.kernel.org
>> Subject: [PATCH 1/5] OMAP: RX51: Add LCD Panel support
>>
>> From: Roger Quadros <roger.quadros@nokia.com>
>>
>> Adds basic support for LCD Panel on Nokia N900
>>
>> Signed-off-by: Roger Quadros <roger.quadros@nokia.com>
>> ---
>>  arch/arm/mach-omap2/Makefile                 |    1 +
>>  arch/arm/mach-omap2/board-rx51-peripherals.c |   13 ++++
>>  arch/arm/mach-omap2/board-rx51-video.c       |   95 
>> ++++++++++++++++++++++++++
>>  3 files changed, 109 insertions(+), 0 deletions(-)  create 
>> mode 100644 arch/arm/mach-omap2/board-rx51-video.c
>>
>> diff --git a/arch/arm/mach-omap2/Makefile 
>> b/arch/arm/mach-omap2/Makefile index 4b9fc57..b03cbb4 100644
>> --- a/arch/arm/mach-omap2/Makefile
>> +++ b/arch/arm/mach-omap2/Makefile
>> @@ -122,6 +122,7 @@ obj-$(CONFIG_MACH_NOKIA_N8X0)		
>> += board-n8x0.o
>>  obj-$(CONFIG_MACH_NOKIA_RX51)		+= board-rx51.o \
>>  					   board-rx51-sdram.o \
>>  					   board-rx51-peripherals.o \
>> +					   board-rx51-video.o \
>>  					   hsmmc.o
>>  obj-$(CONFIG_MACH_OMAP_ZOOM2)		+= board-zoom2.o \
>>  					   board-zoom-peripherals.o \
>> diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c 
>> b/arch/arm/mach-omap2/board-rx51-peripherals.c
>> index 4377a4c..f404537 100644
>> --- a/arch/arm/mach-omap2/board-rx51-peripherals.c
>> +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c
>> @@ -45,6 +45,7 @@
>>  /* list all spi devices here */
>>  enum {
>>  	RX51_SPI_WL1251,
>> +	RX51_SPI_MIPID,		/* LCD panel */
>>  };
>>  
>>  static struct wl12xx_platform_data wl1251_pdata; @@ -54,6 
>> +55,11 @@ static struct omap2_mcspi_device_config 
>> wl1251_mcspi_config = {
>>  	.single_channel	= 1,
>>  };
>>  
>> +static struct omap2_mcspi_device_config mipid_mcspi_config = {
>> +	.turbo_mode	= 0,
> 
> Any specific reason for not enabling turbo mode? 
> It will increase throughput if it is configured in single channel mode.
> 
No specific reason. That was the original configuration, in previous versions of 
the code. It shouldn't make much difference as mipid is only used for panel
detection, enable/disable, and backlight control. Need to test if it works with 
turbo mode.

>> +	.single_channel	= 1,
>> +};
>> +
>>  static struct spi_board_info 
>> rx51_peripherals_spi_board_info[] __initdata = {
>>  	[RX51_SPI_WL1251] = {
>>  		.modalias		= "wl1251",

>> +static int __init rx51_video_init(void) {
>> +	if (!machine_is_nokia_rx51())
>> +		return 0;
>> +
>> +	if (omap_mux_init_gpio(RX51_LCD_RESET_GPIO, OMAP_PIN_OUTPUT)) {
>> +		pr_err("%s cannot configure MUX for LCD 
>> RESET\n", __func__);
>> +		return 0;
>> +	}
>> +
>> +	if (gpio_request(RX51_LCD_RESET_GPIO, "LCD ACX565AKM reset")) {
>> +		pr_err("%s failed to get LCD Reset GPIO\n", __func__);
>> +		return 0;
>> +	}
>> +
>> +	gpio_direction_output(RX51_LCD_RESET_GPIO, 1);
>> +
>> +	platform_add_devices(rx51_video_devices,
>> +				ARRAY_SIZE(rx51_video_devices));
>> +	return 0;
>> +}
> 
> Since this functional always returns 0, you can make return value of this 
> function as void.
> 

I guess it is better to return non zero on failure paths then.

thanks.
-roger

  parent reply	other threads:[~2010-03-23 13:55 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-23  9:56 [PATCH 0/5] OMAP: RX51: Add LCD Panel Support for N900 Roger Quadros
2010-03-23  9:56 ` Roger Quadros
2010-03-23  9:56 ` [PATCH 1/5] OMAP: RX51: Add LCD Panel support Roger Quadros
2010-03-23  9:56   ` Roger Quadros
2010-03-23  9:56   ` [PATCH 2/5] OMAP: RX51: Add "vdds_sdi" supply voltage for SDI Roger Quadros
2010-03-23  9:56     ` Roger Quadros
2010-03-23  9:56     ` [PATCH 3/5] OMAP: RX51: Add Touch Controller in SPI board info Roger Quadros
2010-03-23  9:56       ` Roger Quadros
2010-03-23  9:56       ` [PATCH 4/5] OMAP: DSS2: Add ACX565AKM Panel Driver Roger Quadros
2010-03-23  9:56         ` Roger Quadros
2010-03-23  9:56         ` [PATCH 5/5] OMAP: RX51: Add LCD Panel and framebuffer console to defconfig Roger Quadros
2010-03-23  9:56           ` Roger Quadros
2010-03-23 10:12   ` [PATCH 1/5] OMAP: RX51: Add LCD Panel support pHilipp Zabel
2010-03-23 10:12     ` pHilipp Zabel
2010-03-23 11:20     ` Roger Quadros
2010-03-23 11:20       ` Roger Quadros
2010-03-23 13:48   ` G, Manjunath Kondaiah
2010-03-23 13:48     ` G, Manjunath Kondaiah
2010-03-23 13:55     ` Roger Quadros
2010-03-23 13:55       ` Roger Quadros
2010-03-23 13:55     ` Roger Quadros [this message]
2010-03-23 13:55       ` Roger Quadros
2010-04-06  8:14 ` [PATCH 0/5] OMAP: RX51: Add LCD Panel Support for N900 Arnaud Ebalard
2010-04-06  8:14   ` Arnaud Ebalard
2010-04-06  9:50   ` Roger Quadros
2010-04-06  9:50     ` Roger Quadros
2010-04-06 20:41     ` Arnaud Ebalard
2010-04-06 20:41       ` Arnaud Ebalard
2010-04-07  5:38       ` Tomi Valkeinen
2010-04-07  5:38         ` Tomi Valkeinen
2010-04-07  7:35         ` Arnaud Ebalard
2010-04-07  7:35           ` Arnaud Ebalard
2010-04-07  7:38           ` Roger Quadros
2010-04-07  7:38             ` Roger Quadros
2010-04-07  8:45             ` Arnaud Ebalard
2010-04-07  8:45               ` Arnaud Ebalard

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=4BA8C861.4080501@nokia.com \
    --to=roger.quadros@nokia.com \
    --cc=Tomi.Valkeinen@nokia.com \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=manjugk@ti.com \
    --cc=tony@atomide.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.