From patchwork Mon Dec 10 12:28:49 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 1857921 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 3CF533FCA5 for ; Mon, 10 Dec 2012 12:33:02 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Ti2V2-000111-2G; Mon, 10 Dec 2012 12:30:20 +0000 Received: from mail-lb0-f177.google.com ([209.85.217.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Ti2Up-0000zW-Ig for linux-arm-kernel@lists.infradead.org; Mon, 10 Dec 2012 12:30:08 +0000 Received: by mail-lb0-f177.google.com with SMTP id n10so1893262lbo.36 for ; Mon, 10 Dec 2012 04:30:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=jo0I/4+D/7Iqs/9EB7JMNoCqP0BhJSsRUjIE54jdyqo=; b=oV+/9qBBwekq+n5jPPtLD2LvEUeLO7ajYweefh7sQWES7m4gj8CjAS2CnwT8SWY2bC ZAsnb4IyaT9qydkDyF7J4UT36QBjEJPIRFAeQygPy0UktvKV6b8fNQi+wulQ+39zA+P8 Qs2GunaYCP8mAzDjtbN+ZGL7edald55yZXUBiVN5Heng1/VonqlWJu1mFZ6J4hoYDcU1 hit48kpXH++q2ojCAMGaifBwktSKhIjb7Igk9dWdDCrnA79QqfvpWvggEFGICMwGhrt5 JJD/zIt9wj2keF+p579Wk1hw1hXunw5UYp6SBAq4ZeVv18WXO7iGx1juIjUbK/syFrWv 7Oag== Received: by 10.112.84.102 with SMTP id x6mr6183786lby.35.1355142605144; Mon, 10 Dec 2012 04:30:05 -0800 (PST) Received: from xi.lan (s83-177-171-79.cust.tele2.se. [83.177.171.79]) by mx.google.com with ESMTPS id hu6sm7754026lab.13.2012.12.10.04.30.03 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 10 Dec 2012 04:30:04 -0800 (PST) Received: from johan by xi.lan with local (Exim 4.80.1) (envelope-from ) id 1Ti2Tk-0002ik-9N; Mon, 10 Dec 2012 13:29:00 +0100 From: Johan Hovold To: Florian Tobias Schandinat Subject: [PATCH 2/3] ARM: at91/neocore926: fix LCD-wiring mode Date: Mon, 10 Dec 2012 13:28:49 +0100 Message-Id: <1355142530-10366-3-git-send-email-jhovold@gmail.com> X-Mailer: git-send-email 1.8.0 In-Reply-To: <1355142530-10366-1-git-send-email-jhovold@gmail.com> References: <1355142530-10366-1-git-send-email-jhovold@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121210_073007_817054_45AC9EB5 X-CRM114-Status: GOOD ( 13.89 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (jhovold[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.217.177 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: linux-fbdev@vger.kernel.org, Johan Hovold , Nicolas Ferre , stable@vger.kernel.org, Peter Korsgaard , Jean-Christophe Plagniol-Villard , Andrew Victor , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Fix regression introduced by commit 787f9fd23283 ("atmel_lcdfb: support 16bit BGR:565 mode, remove unsupported 15bit modes") which broke 16-bpp modes for older SOCs which use IBGR:555 (msb is intensity) rather than BGR:565. The above commit also removed the RGB:555-wiring hack without fixing the neocore926 board which used it. Fix by specifying RGB-wiring and let the driver handle the final SOC-dependant layout. Remove the no longer used ATMEL_LCDC_WIRING_RGB555 define. Compile-only tested. Cc: Signed-off-by: Johan Hovold Acked-by: Peter Korsgaard --- arch/arm/mach-at91/board-neocore926.c | 2 +- include/video/atmel_lcdc.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/mach-at91/board-neocore926.c b/arch/arm/mach-at91/board-neocore926.c index 997d359..daeb7c6 100644 --- a/arch/arm/mach-at91/board-neocore926.c +++ b/arch/arm/mach-at91/board-neocore926.c @@ -265,7 +265,7 @@ static struct atmel_lcdfb_info __initdata neocore926_lcdc_data = { .default_monspecs = &at91fb_default_monspecs, .atmel_lcdfb_power_control = at91_lcdc_power_control, .guard_time = 1, - .lcd_wiring_mode = ATMEL_LCDC_WIRING_RGB555, + .lcd_wiring_mode = ATMEL_LCDC_WIRING_RGB, }; #else diff --git a/include/video/atmel_lcdc.h b/include/video/atmel_lcdc.h index 5f0e234..8deb226 100644 --- a/include/video/atmel_lcdc.h +++ b/include/video/atmel_lcdc.h @@ -30,7 +30,6 @@ */ #define ATMEL_LCDC_WIRING_BGR 0 #define ATMEL_LCDC_WIRING_RGB 1 -#define ATMEL_LCDC_WIRING_RGB555 2 /* LCD Controller info data structure, stored in device platform_data */