From patchwork Wed Sep 26 09:05:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bastian Hecht X-Patchwork-Id: 187024 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id F09AB2C007F for ; Wed, 26 Sep 2012 19:06:29 +1000 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TGnYg-0003NK-5p; Wed, 26 Sep 2012 09:05:30 +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 1TGnYY-0003MX-Le for linux-mtd@lists.infradead.org; Wed, 26 Sep 2012 09:05:23 +0000 Received: by bkwj4 with SMTP id j4so154630bkw.36 for ; Wed, 26 Sep 2012 02:05:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=+oKg7c8wEhlb/dyXdmAuInEqpBVhwpSX6ah3jpWS+qA=; b=k5bagvHz416ExblCFNH4/LSBkneJPdNRBUnB8XEoX6cjgb3nPrnn4EnDK9sjE65Nq1 yiFTJIOnfNsYCUUJ2h2EM93z0SwAiBYPxcH8eyyZ5ibnR71OhN4Jd3To1UExBcWWC88U mkDNJLLaFO5c8LebMQhX4TjG8sqCSnZD1n3ztv1lLnO4vu9qjt8RLYN2h0XEXrkNGbQT rT7uYtQjZovbLBxSPp47RclW5dCfMurlTyTPSXsgkPzhsN48Ex4XxHucjucv/3WoQXG6 Q611oXaOqTHO2yJ4jA9mEVohLBpUUe8NOnlhRapMIUV2ZZbpwYBNY0oKHwGCsSwBblXq p5bA== Received: by 10.204.157.7 with SMTP id z7mr6662994bkw.14.1348650321469; Wed, 26 Sep 2012 02:05:21 -0700 (PDT) Received: from localhost.localdomain (p4FD22781.dip.t-dialin.net. [79.210.39.129]) by mx.google.com with ESMTPS id n5sm1766603bkv.14.2012.09.26.02.05.20 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 26 Sep 2012 02:05:21 -0700 (PDT) From: Bastian Hecht To: linux-mtd@lists.infradead.org Subject: [PATCH 3/3] mtd: sh_flctl: Add sh7372 device tree config Date: Wed, 26 Sep 2012 11:05:06 +0200 Message-Id: <1348650306-15492-3-git-send-email-hechtb@gmail.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1348650306-15492-1-git-send-email-hechtb@gmail.com> References: <1348650306-15492-1-git-send-email-hechtb@gmail.com> 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 (hechtb[at]googlemail.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: Magnus Damm , linux-sh@vger.kernel.org X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Include the configuration data to set up FLCTL via device tree probing for the SoC sh7372. Signed-off-by: Bastian Hecht --- drivers/mtd/nand/sh_flctl.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/nand/sh_flctl.c b/drivers/mtd/nand/sh_flctl.c index 472c27e..b8b1d52 100644 --- a/drivers/mtd/nand/sh_flctl.c +++ b/drivers/mtd/nand/sh_flctl.c @@ -1030,7 +1030,15 @@ struct flctl_soc_config { unsigned use_holden:1; }; +static struct flctl_soc_config flctl_sh7372_config = { + .flcmncr_val = CLK_16B_12L_4H | TYPESEL_SET | SHBUSSEL, + .has_hwecc = 1, + .use_holden = 1, +}; + static const struct of_device_id of_flctl_match[] = { + { .compatible = "renesas,shmobile-flctl-sh7372", + .data = &flctl_sh7372_config }, {}, }; MODULE_DEVICE_TABLE(of, of_flctl_match);