From patchwork Tue May 19 23:44:09 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 24813 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n4JNiJpl008701 for ; Tue, 19 May 2009 23:44:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755507AbZESXoO (ORCPT ); Tue, 19 May 2009 19:44:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755217AbZESXoO (ORCPT ); Tue, 19 May 2009 19:44:14 -0400 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:52544 "EHLO mho-01-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755408AbZESXoN (ORCPT ); Tue, 19 May 2009 19:44:13 -0400 Received: from c-67-160-239-110.hsd1.ca.comcast.net ([67.160.239.110] helo=[127.0.0.1]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from ) id 1M6Yyh-000Mik-NN; Tue, 19 May 2009 23:44:11 +0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 67.160.239.110 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19ovMr28nItPJ64SYG1ZQ6a Subject: [PATCH 10/10] ARM: OMAP2: 2430SDP: Add FB support to board file To: linux-arm-kernel@lists.arm.linux.org.uk From: Tony Lindgren Cc: Kevin Hilman , Imre Deak , linux-omap@vger.kernel.org, linux-fbdev-devel@lists.sourceforge.net, Hunyue Yau Date: Tue, 19 May 2009 16:44:09 -0700 Message-ID: <20090519234408.12760.48406.stgit@localhost> In-Reply-To: <20090519232905.12760.15490.stgit@localhost> References: <20090519232905.12760.15490.stgit@localhost> User-Agent: StGit/0.14.3.347.g594a MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: Imre Deak Based on an earlier patch by Hunyue Yau with board-*.c changes split to avoid conflicts with other device updates. Cc: linux-fbdev-devel@lists.sourceforge.net Signed-off-by: Hunyue Yau Signed-off-by: Kevin Hilman Signed-off-by: Imre Deak Signed-off-by: Tony Lindgren --- arch/arm/mach-omap2/board-2430sdp.c | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c index 788cfce..d1d467d 100644 --- a/arch/arm/mach-omap2/board-2430sdp.c +++ b/arch/arm/mach-omap2/board-2430sdp.c @@ -41,6 +41,7 @@ #include "mmc-twl4030.h" #define SDP2430_CS0_BASE 0x04000000 +#define SECONDARY_LCD_GPIO 147 static struct mtd_partition sdp2430_partitions[] = { /* bootloader (U-Boot, etc) in first sector */ @@ -96,8 +97,18 @@ static struct platform_device sdp2430_flash_device = { .resource = &sdp2430_flash_resource, }; +static struct platform_device sdp2430_lcd_device = { + .name = "sdp2430_lcd", + .id = -1, +}; + static struct platform_device *sdp2430_devices[] __initdata = { &sdp2430_flash_device, + &sdp2430_lcd_device, +}; + +static struct omap_lcd_config sdp2430_lcd_config __initdata = { + .ctrl_name = "internal", }; #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91x_MODULE) @@ -135,6 +146,7 @@ static struct omap_uart_config sdp2430_uart_config __initdata = { static struct omap_board_config_kernel sdp2430_config[] = { {OMAP_TAG_UART, &sdp2430_uart_config}, + {OMAP_TAG_LCD, &sdp2430_lcd_config}, }; @@ -182,6 +194,8 @@ static struct twl4030_hsmmc_info mmc[] __initdata = { static void __init omap_2430sdp_init(void) { + int ret; + omap2430_i2c_init(); platform_add_devices(sdp2430_devices, ARRAY_SIZE(sdp2430_devices)); @@ -191,6 +205,11 @@ static void __init omap_2430sdp_init(void) twl4030_mmc_init(mmc); usb_musb_init(); board_smc91x_init(); + + /* Turn off secondary LCD backlight */ + ret = gpio_request(SECONDARY_LCD_GPIO, "Secondary LCD backlight"); + if (ret == 0) + gpio_direction_output(SECONDARY_LCD_GPIO, 0); } static void __init omap_2430sdp_map_io(void)