From patchwork Wed Jul 15 15:56:24 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dimitar Dimitrov X-Patchwork-Id: 71663 X-Patchwork-Delegate: info@emk-elektronik.de Return-Path: X-Original-To: wd@gemini.denx.de Delivered-To: wd@gemini.denx.de Received: from diddl.denx.de (diddl.denx.de [10.0.0.6]) by gemini.denx.de (Postfix) with ESMTP id 581BC832E416 for ; Wed, 15 Jul 2009 17:56:20 +0200 (CEST) Received: from diddl.denx.de (localhost.localdomain [127.0.0.1]) by diddl.denx.de (Postfix) with ESMTP id 4B419C913181 for ; Wed, 15 Jul 2009 17:56:20 +0200 (CEST) Received: from pop.mnet-online.de by diddl.denx.de with POP3 (fetchmail-6.3.8) for (single-drop); Wed, 15 Jul 2009 17:56:20 +0200 (CEST) Received: from murder (svr19.m-online.net [192.168.3.147]) by backend2 (Cyrus v2.2.12) with LMTPA; Wed, 15 Jul 2009 17:57:02 +0200 X-Sieve: CMU Sieve 2.2 Received: from mail.m-online.net (localhost [127.0.0.1]) by frontend3.pop.m-online.net (Cyrus v2.2.13) with LMTPA; Wed, 15 Jul 2009 17:56:14 +0200 Received: from scanner-4.m-online.net (scanner-4.m-online.net [192.168.1.18]) by mail.m-online.net (Postfix) with ESMTP id 7D8D12004AF; Wed, 15 Jul 2009 17:56:13 +0200 (CEST) Received: from mxin-1.m-online.net ([192.168.1.21]) by scanner-4.m-online.net (scanner-4.m-online.net [192.168.1.18]) (amavisd-new, port 10026) with ESMTP id 23681-01-4; Wed, 15 Jul 2009 17:56:11 +0200 (CEST) Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by mxin-2.m-online.net (Postfix) with ESMTP id 2D6F646C0BC; Wed, 15 Jul 2009 17:56:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7E250280F4; Wed, 15 Jul 2009 17:56:05 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rz-w1xhd233U; Wed, 15 Jul 2009 17:56:05 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D8541280F5; Wed, 15 Jul 2009 17:55:59 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B6E76280EE for ; Wed, 15 Jul 2009 17:55:57 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZVDOnDk+TrgK for ; Wed, 15 Jul 2009 17:55:57 +0200 (CEST) Received: from mail.interbgc.com (mx01.interbgc.com [217.9.224.225]) by theia.denx.de (Postfix) with SMTP id 05975280EA for ; Wed, 15 Jul 2009 17:55:55 +0200 (CEST) Received: (qmail 21572 invoked by uid 1008); 15 Jul 2009 15:55:46 -0000 Received: from unknown (89.215.22.131) by mx01.interbgc.com with SMTP; 15 Jul 2009 15:55:46 -0000 From: Dimitar Dimitrov To: u-boot@lists.denx.de Date: Wed, 15 Jul 2009 18:56:24 +0300 User-Agent: KMail/1.9.9 MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200907151856.24888.dinuxbg@gmail.com> Subject: [U-Boot] [PATCH] Add inverted clock polarity support for Atmel LCD driver X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list Reply-To: dinuxbg@gmail.com List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de X-Virus-Scanned: by amavisd-new at m-online.net This is my third try for Olimex SAM9-L9260/61 board support patches. Here follows the first patch. --- Boards utilizing the Atmel LCD driver can now specify that the LCD clock must be inverted by defining the macro CONFIG_LCD_INVERTED_CLOCK. --- README | 5 +++++ drivers/video/atmel_lcdfb.c | 3 +++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/README b/README index de700bd..d7c0afe 100644 --- a/README +++ b/README @@ -1063,6 +1063,11 @@ The following options need to be configured: Normally display is black on white background; define CONFIG_SYS_WHITE_ON_BLACK to get it inverted. + CONFIG_LCD_INVERTED_CLOCK + Define this if your LCD needs inverted clock polarity. Note + that this feature will work only if the selected LCD driver + and hardware controller support it. + - Splash Screen Support: CONFIG_SPLASH_SCREEN If this option is set, the environment is checked for diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c index db86763..d3e988e 100644 --- a/drivers/video/atmel_lcdfb.c +++ b/drivers/video/atmel_lcdfb.c @@ -112,6 +112,9 @@ void lcd_ctrl_init(void *lcdbase) value |= panel_info.vl_sync; value |= (panel_info.vl_bpix << 5); +#if defined(CONFIG_LCD_INVERTED_CLOCK) + value |= ATMEL_LCDC_INVCLK_INVERTED; +#endif lcdc_writel(panel_info.mmio, ATMEL_LCDC_LCDCON2, value); /* Vertical timing */