From patchwork Thu Jan 9 12:31:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Jacques Hiblot X-Patchwork-Id: 3459801 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 318A0C02DD for ; Thu, 9 Jan 2014 12:37:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 189782012E for ; Thu, 9 Jan 2014 12:37:03 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 520EA20120 for ; Thu, 9 Jan 2014 12:36:58 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W1EqD-0002Zl-KV; Thu, 09 Jan 2014 12:36:05 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W1Eq1-0003ze-Qq; Thu, 09 Jan 2014 12:35:53 +0000 Received: from mail-wg0-f53.google.com ([74.125.82.53]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W1Epb-0003tF-0U for linux-arm-kernel@lists.infradead.org; Thu, 09 Jan 2014 12:35:28 +0000 Received: by mail-wg0-f53.google.com with SMTP id k14so2715065wgh.20 for ; Thu, 09 Jan 2014 04:35:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vgzF1h+GNr6OJlpRFmQynxCAAurHFpOHtlMwK3rDlU4=; b=bv6fxZWBFKGUFdGywjsbW/FowYE18K3xs9CPBk1y9Fxnwf1kceUyo6wCcxflQag76V E5tPIVjpv4XJ08yGQ2ktz5s2wYbriiPWLtrS+qt0Vma5pP97rwDq83tIdNGji9GqC3wT Z9LogWYvi0DStLJPdOpZ2dTA+MhEN/h/iYS2iR+vxOxrptEPzt74vqJ53NHp2mQjSYKN fzMlNq+bUdpfu5Q70KJ5c375RQIVrB9wu9y2uAQ8bCCZm9ScpRt8CciM8Q/OF7iJLXyd JvhdwdJesNaJwAv5GUU2cfOBpi4SVF9LD6P/kfFHzuOFZF/komxKCeXz8iFqjnOj75n5 6PJA== X-Received: by 10.194.23.201 with SMTP id o9mr2661316wjf.67.1389270904587; Thu, 09 Jan 2014 04:35:04 -0800 (PST) Received: from stedf17-labo202.ds.jdsu.net. (4-161.80-90.static-ip.oleane.fr. [90.80.161.4]) by mx.google.com with ESMTPSA id t10sm7454854wia.6.2014.01.09.04.35.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jan 2014 04:35:03 -0800 (PST) From: Jean-Jacques Hiblot To: nicolas.ferre@atmel.com, b.brezillon@overkiz.com, arnd@arndb.de Subject: [PATCH v2 04/12] at91: smc: export sam9_smc_cs_read and sam9_smc_cs_configure. Date: Thu, 9 Jan 2014 13:31:41 +0100 Message-Id: <1389270709-32662-5-git-send-email-jjhiblot@traphandler.com> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1389270709-32662-1-git-send-email-jjhiblot@traphandler.com> References: <1389270709-32662-1-git-send-email-jjhiblot@traphandler.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140109_073527_214584_5380BAAD X-CRM114-Status: GOOD ( 10.19 ) X-Spam-Score: -2.6 (--) Cc: Jean-Jacques Hiblot , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch makes sam9_smc_cs_read and sam9_smc_cs_configure available to the rest of the kernel (though not to modules). Signed-off-by: Jean-Jacques Hiblot --- arch/arm/mach-at91/include/mach/at91sam9_smc.h | 2 ++ arch/arm/mach-at91/sam9_smc.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-at91/include/mach/at91sam9_smc.h b/arch/arm/mach-at91/include/mach/at91sam9_smc.h index 175e1fd..56de08a 100644 --- a/arch/arm/mach-at91/include/mach/at91sam9_smc.h +++ b/arch/arm/mach-at91/include/mach/at91sam9_smc.h @@ -45,6 +45,8 @@ extern void sam9_smc_configure(int id, int cs, struct sam9_smc_config *config); extern void sam9_smc_read(int id, int cs, struct sam9_smc_config *config); extern void sam9_smc_read_mode(int id, int cs, struct sam9_smc_config *config); extern void sam9_smc_write_mode(int id, int cs, struct sam9_smc_config *config); +extern void sam9_smc_cs_read(void __iomem *, struct sam9_smc_config *config); +extern void sam9_smc_cs_configure(void __iomem *, struct sam9_smc_config *cfg); #endif #define AT91_SMC_SETUP 0x00 /* Setup Register for CS n */ diff --git a/arch/arm/mach-at91/sam9_smc.c b/arch/arm/mach-at91/sam9_smc.c index b26156b..d7a6156 100644 --- a/arch/arm/mach-at91/sam9_smc.c +++ b/arch/arm/mach-at91/sam9_smc.c @@ -37,7 +37,7 @@ void sam9_smc_write_mode(int id, int cs, sam9_smc_cs_write_mode(AT91_SMC_CS(id, cs), config); } -static void sam9_smc_cs_configure(void __iomem *base, +void sam9_smc_cs_configure(void __iomem *base, struct sam9_smc_config *config) { @@ -85,7 +85,7 @@ void sam9_smc_read_mode(int id, int cs, sam9_smc_cs_read_mode(AT91_SMC_CS(id, cs), config); } -static void sam9_smc_cs_read(void __iomem *base, +void sam9_smc_cs_read(void __iomem *base, struct sam9_smc_config *config) { u32 val;