From patchwork Fri Oct 1 01:15:55 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Victor Rodriguez X-Patchwork-Id: 222062 Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o911GaKs009043 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 1 Oct 2010 01:16:57 GMT Received: from dlep36.itg.ti.com ([157.170.170.91]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id o911EtSn019175 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 30 Sep 2010 20:14:55 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id o911EsNh004174; Thu, 30 Sep 2010 20:14:54 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 6FDD680627; Thu, 30 Sep 2010 20:14:54 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dlep34.itg.ti.com (dlep34.itg.ti.com [157.170.170.115]) by linux.omap.com (Postfix) with ESMTP id A613080626 for ; Thu, 30 Sep 2010 20:14:51 -0500 (CDT) Received: from emcc1.sasken-mty.naucm.ext.ti.com (localhost [127.0.0.1]) by dlep34.itg.ti.com (8.13.7/8.13.7) with ESMTP id o911Em6D012401; Thu, 30 Sep 2010 20:14:48 -0500 (CDT) Received: from localhost.localdomain (victor-desktop.sasken-mty.naucm.ext.ti.com [10.87.230.94]) by emcc1.sasken-mty.naucm.ext.ti.com (8.13.8+Sun/8.13.8) with ESMTP id o911Eln7024128; Thu, 30 Sep 2010 20:14:48 -0500 (CDT) From: To: Subject: [[RFC]PATCH v1] davinci: VGA support for Omapl138-Hawkboard Date: Thu, 30 Sep 2010 20:15:55 -0500 Message-Id: <1285895755-29129-1-git-send-email-vm.rod25@gmail.com> X-Mailer: git-send-email 1.6.0.5 X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: davinci-linux-open-source-bounces@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 01 Oct 2010 01:16:57 +0000 (UTC) diff --git a/arch/arm/mach-davinci/board-omapl138-hawk.c b/arch/arm/mach-davinci/board-omapl138-hawk.c index d752244..ff009ad 100644 --- a/arch/arm/mach-davinci/board-omapl138-hawk.c +++ b/arch/arm/mach-davinci/board-omapl138-hawk.c @@ -183,6 +183,11 @@ static __init void omapl138_hawk_init(void) ret); da8xx_register_mcasp(0, &omapl138_hawk_snd_data); + ret = da8xx_register_lcdc(&vga_monitor_pdata); + if (ret) + pr_warning("omapl138_hawk_init: " + "lcdc registration failed: %d\n", + ret); ret = da8xx_register_watchdog(); if (ret) diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c index 9eec630..ad6fac2 100644 --- a/arch/arm/mach-davinci/devices-da8xx.c +++ b/arch/arm/mach-davinci/devices-da8xx.c @@ -528,6 +528,12 @@ struct da8xx_lcdc_platform_data sharp_lk043t1dg01_pdata = { .type = "Sharp_LK043T1DG01", }; +struct da8xx_lcdc_platform_data vga_monitor_pdata = { + .manu_name = "vga_mon", + .controller_data = &lcd_cfg, + .type = "VGA_Monitor", +}; + static struct resource da8xx_lcdc_resources[] = { [0] = { /* registers */ .start = DA8XX_LCD_CNTRL_BASE, diff --git a/arch/arm/mach-davinci/include/mach/da8xx.h b/arch/arm/mach-davinci/include/mach/da8xx.h index 4247b3f..6dae1d1 100644 --- a/arch/arm/mach-davinci/include/mach/da8xx.h +++ b/arch/arm/mach-davinci/include/mach/da8xx.h @@ -88,6 +88,7 @@ extern struct platform_device da8xx_serial_device; extern struct emac_platform_data da8xx_emac_pdata; extern struct da8xx_lcdc_platform_data sharp_lcd035q3dg01_pdata; extern struct da8xx_lcdc_platform_data sharp_lk043t1dg01_pdata; +extern struct da8xx_lcdc_platform_data vga_monitor_pdata; extern struct platform_device da8xx_wdt_device; diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index cad7d45..eea7264 100644 --- a/drivers/video/da8xx-fb.c +++ b/drivers/video/da8xx-fb.c @@ -212,6 +212,21 @@ static struct da8xx_panel known_lcd_panels[] = { .pxl_clk = 7833600, .invert_pxl_clk = 0, }, + + /* CRT Monitor or LCD Screen */ + [2] = { + .name = "VGA_Monitor", + .width = 640, + .height = 480, + .hfp = 48, + .hbp = 48, + .hsw = 63, + .vfp = 11, + .vbp = 31, + .vsw = 1, + .pxl_clk = 25000000, + .invert_pxl_clk = 1, + }, }; /* Enable the Raster Engine of the LCD Controller */