From patchwork Mon Jul 9 00:47:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lei Wen X-Patchwork-Id: 1170561 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 00FA73FD4F for ; Mon, 9 Jul 2012 00:56:51 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1So29M-0006Kw-KV; Mon, 09 Jul 2012 00:48:28 +0000 Received: from mail-bk0-f49.google.com ([209.85.214.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1So28F-0006KC-1D for linux-arm-kernel@lists.infradead.org; Mon, 09 Jul 2012 00:47:20 +0000 Received: by bkcji2 with SMTP id ji2so5056188bkc.36 for ; Sun, 08 Jul 2012 17:47:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=yBWccFiWCrHLOaTkeqNuWtpnPuRBBaND1Y3UklKovqU=; b=GKbBrxCJ4vQCZx686trn8z3Iia1mK2O+CdBvaSXeO9+2c6scIsK9H6RTHiuIzCctA6 4xFILoyUDTvlZVNnBMv3MwnY1nK+mbKXQJO3tJFT3kVd9uwJmBU0/aAQSOwcgUfOU6yh b/0sgfXgL93CNIsfb7YVSvKZ0zszGL/k6kdjD64AHcg+i/AKKiUsRmXszdwVqx43Zjz0 nFPnMPa3e6RZsYCtPCGevXljw5hJUWC+VtX2aKnG9/RcAMk/tBplvXJcusq9o+v/wSgV 2w8R5URsWPt8GwataniHFhLpN7DTLICsIAteRZjSdoP9Gmq9CKWLxBUdRS+GAMiC9z/D Eh4A== MIME-Version: 1.0 Received: by 10.205.125.7 with SMTP id gq7mr16296533bkc.98.1341794833476; Sun, 08 Jul 2012 17:47:13 -0700 (PDT) Received: by 10.204.35.8 with HTTP; Sun, 8 Jul 2012 17:47:13 -0700 (PDT) In-Reply-To: <1341793703-18510-1-git-send-email-leiwen@marvell.com> References: <1341793703-18510-1-git-send-email-leiwen@marvell.com> Date: Mon, 9 Jul 2012 08:47:13 +0800 Message-ID: Subject: [PATCH] ARM: ttc_dkb: add nand support From: Lei Wen To: linux-arm-kernel@lists.infradead.org X-Spam-Note: CRM114 invocation failed 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.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.214.49 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (adrian.wenl[at]gmail.com) -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: Yu Tang , Alan Zhu , Haojian Zhuang , Zhangfei Gao , Chao Xie 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: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add NAND support for dkb platform. Signed-off-by: Lei Wen --- arch/arm/mach-mmp/ttc_dkb.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) -- 1.7.5.4 diff --git a/arch/arm/mach-mmp/ttc_dkb.c b/arch/arm/mach-mmp/ttc_dkb.c index 7a7de2b..5a6a1ad 100644 --- a/arch/arm/mach-mmp/ttc_dkb.c +++ b/arch/arm/mach-mmp/ttc_dkb.c @@ -177,6 +177,13 @@ static struct mv_usb_platform_data ttc_usb_pdata = { #endif #endif +#ifdef CONFIG_MTD_NAND_PXA3xx +static struct pxa3xx_nand_platform_data dkb_nand_info = { + .enable_arbiter = 1, + .num_cs = 1, +}; +#endif + static void __init ttc_dkb_init(void) { mfp_config(ARRAY_AND_SIZE(ttc_dkb_pin_config)); @@ -184,6 +191,10 @@ static void __init ttc_dkb_init(void) /* on-chip devices */ pxa910_add_uart(1); +#ifdef CONFIG_MTD_NAND_PXA3xx + pxa910_add_nand(&dkb_nand_info); +#endif + /* off-chip devices */ pxa910_add_twsi(0, NULL, ARRAY_AND_SIZE(ttc_dkb_i2c_info)); platform_add_devices(ARRAY_AND_SIZE(ttc_dkb_devices));