From patchwork Fri Mar 9 04:47:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: wu guoxing X-Patchwork-Id: 146299 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 225A8B6FA7 for ; Tue, 13 Mar 2012 11:22:19 +1100 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1S7FSl-0000Td-KS; Tue, 13 Mar 2012 00:19:39 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1S7Cuc-0003q1-9k for linux-arm-kernel@merlin.infradead.org; Mon, 12 Mar 2012 21:36:16 +0000 Received: from tx2ehsobe005.messaging.microsoft.com ([65.55.88.15] helo=tx2outboundpool.messaging.microsoft.com) by casper.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1S5rlL-0003ee-Tz for linux-arm-kernel@lists.infradead.org; Fri, 09 Mar 2012 04:49:12 +0000 Received: from mail114-tx2-R.bigfish.com (10.9.14.237) by TX2EHSOBE008.bigfish.com (10.9.40.28) with Microsoft SMTP Server id 14.1.225.23; Fri, 9 Mar 2012 04:48:43 +0000 Received: from mail114-tx2 (localhost [127.0.0.1]) by mail114-tx2-R.bigfish.com (Postfix) with ESMTP id DB5322E01E8 for ; Fri, 9 Mar 2012 04:48:43 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275bhz2dh2a8h668h839h) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI Received: from mail114-tx2 (localhost.localdomain [127.0.0.1]) by mail114-tx2 (MessageSwitch) id 1331268521907850_17415; Fri, 9 Mar 2012 04:48:41 +0000 (UTC) Received: from TX2EHSMHS017.bigfish.com (unknown [10.9.14.246]) by mail114-tx2.bigfish.com (Postfix) with ESMTP id CF0D22C0045 for ; Fri, 9 Mar 2012 04:48:41 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by TX2EHSMHS017.bigfish.com (10.9.99.117) with Microsoft SMTP Server (TLS) id 14.1.225.23; Fri, 9 Mar 2012 04:48:41 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-002.039d.mgd.msft.net (10.84.1.15) with Microsoft SMTP Server (TLS) id 14.1.355.3; Thu, 8 Mar 2012 22:48:40 -0600 Received: from shlinux1.ap.freescale.net ([10.213.130.145]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id q294md4V020022 for ; Thu, 8 Mar 2012 21:48:39 -0700 Received: by shlinux1.ap.freescale.net (Postfix, from userid 1043) id 4C5BB1AE09B; Fri, 9 Mar 2012 12:47:54 +0800 (CST) From: Wu Guoxing To: Subject: [PATCH v5] ARM : mx35: 3ds-board: add framebuffer device Date: Fri, 9 Mar 2012 12:47:52 +0800 Message-ID: <1331268472-18270-1-git-send-email-b39297@freescale.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 X-OriginatorOrg: freescale.net X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20120309_044908_276395_B7A1887F X-CRM114-Status: GOOD ( 21.64 ) X-Spam-Score: -4.2 (----) X-Spam-Report: SpamAssassin version 3.3.2 on casper.infradead.org summary: Content analysis details: (-4.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [65.55.88.15 listed in list.dnswl.org] Cc: shawn.guo@linaro.org, wu guoxing , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org From: wu guoxing This patch adds framebuffer support for freescale mx35 3ds board Signed-off-by: Wu Guoxing --- Changes since v4: 1. fixed a typo error in mx35_3ds_lcd_set_power. Changes since v3: 1. use a static variable to save the gpio value instead of find the gpiochip every time. 2. add gpio_request after found the gpio. Changes since v2: 1. use gpio_set_value_cansleep instead of gpio_set_value Changes since v1: 1. use gpio driver for mc9s08dz60 arch/arm/mach-imx/mach-mx35_3ds.c | 121 +++++++++++++++++++++++++++++++++++++ 1 files changed, 121 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-imx/mach-mx35_3ds.c b/arch/arm/mach-imx/mach-mx35_3ds.c index 0af6c9c..fa7c7f3 100644 --- a/arch/arm/mach-imx/mach-mx35_3ds.c +++ b/arch/arm/mach-imx/mach-mx35_3ds.c @@ -40,9 +40,94 @@ #include #include #include +#include