From patchwork Wed Jan 9 20:43:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 1955621 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 4FFB93FD40 for ; Wed, 9 Jan 2013 20:52:44 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Tt2ZW-0006OE-Ra; Wed, 09 Jan 2013 20:48:27 +0000 Received: from moutng.kundenserver.de ([212.227.126.171]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Tt2VE-0004B4-GG for linux-arm-kernel@lists.infradead.org; Wed, 09 Jan 2013 20:44:03 +0000 Received: from mailbox.adnet.avionic-design.de (mailbox.avionic-design.de [109.75.18.3]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MQs8Y-1TPrHf2rRW-00TrBw; Wed, 09 Jan 2013 21:43:26 +0100 Received: from localhost (localhost [127.0.0.1]) by mailbox.adnet.avionic-design.de (Postfix) with ESMTP id D51EB2A2813E; Wed, 9 Jan 2013 21:43:24 +0100 (CET) X-Virus-Scanned: amavisd-new at avionic-design.de Received: from mailbox.adnet.avionic-design.de ([127.0.0.1]) by localhost (mailbox.avionic-design.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t5+MfqgZgYmh; Wed, 9 Jan 2013 21:43:23 +0100 (CET) Received: from mailman.adnet.avionic-design.de (mailman.adnet.avionic-design.de [172.20.31.172]) by mailbox.adnet.avionic-design.de (Postfix) with ESMTP id AE57C2A2814C; Wed, 9 Jan 2013 21:43:16 +0100 (CET) Received: from localhost (avionic-0098.adnet.avionic-design.de [172.20.31.233]) by mailman.adnet.avionic-design.de (Postfix) with ESMTP id 3E0391007FB; Wed, 9 Jan 2013 21:43:12 +0100 (CET) From: Thierry Reding To: linux-tegra@vger.kernel.org Subject: [PATCH 09/14] ARM: tegra: Move pmc.h to include/mach Date: Wed, 9 Jan 2013 21:43:09 +0100 Message-Id: <1357764194-12677-10-git-send-email-thierry.reding@avionic-design.de> X-Mailer: git-send-email 1.8.1 In-Reply-To: <1357764194-12677-1-git-send-email-thierry.reding@avionic-design.de> References: <1357764194-12677-1-git-send-email-thierry.reding@avionic-design.de> X-Provags-ID: V02:K0:X9atDaLo0fdR2oWAunOvT1DxGqwXILW/s3RelSVlJDg GM5aQkh9oKroRnx6ixgqSWFFSlPKrjNIpQICdnEAOYILGWEoni jGINyamNN96klJv+2RC2e5F1v+I4FbJ8vLv3VgYcL5YMyzGN2g /c6YAi7Uzu+lg/g5x3IQuN50Mg1WJLfky5Ya4prsEumXk+tAGV ZlWSHNGUlTj1GA/Ca7R2yqFuGmwhgFmrn+E0PkbVMfTIeBbpvL ZCbbMu3CqyJPGaAi8AoE+6qO1H3iFjPTbDaatGfyGNhoY6N0Fe +DlLBnunx5/xgmYTLN/0rCVGfIU02MPzcezd2pn4ZiNX7Bn7Oi RDLw8hHsjrSJ/p1CGjjBY7dTJQIGuCnA8ec0M3RnSwfAIVgzAl SnwJpFb4EUGk+r5MKdQoWqNdjHRo6t+VGs1JL5ZfFqwdT+PNY9 GZJqV X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130109_154400_922540_BA077628 X-CRM114-Status: GOOD ( 19.73 ) X-Spam-Score: 1.1 (+) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (1.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.126.171 listed in list.dnswl.org] 3.0 KHOP_BIG_TO_CC Sent to 10+ recipients instaed of Bcc or a list -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Thomas Petazzoni , Jason Gunthorpe , Russell King , Arnd Bergmann , Stephen Warren , linux-pci@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org, Rob Herring , Grant Likely , Bjorn Helgaas , Andrew Murray , 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 In preparation for moving the PCIe driver into the drivers/pci/host directory, this header, which contains prototypes that are required by the PCIe driver, needs to be moved to a globally visible location. Signed-off-by: Thierry Reding --- Note that eventually the code in pmc.c and powergate.c should probably be split out into a separate driver. The PMC registers are also directly accessed from tegra20_clocks.c and tegra30_clocks.c, so that it might be required to provide that functionality through the new driver as well. --- arch/arm/mach-tegra/common.c | 2 +- arch/arm/mach-tegra/include/mach/pmc.h | 24 ++++++++++++++++++++++++ arch/arm/mach-tegra/pmc.h | 24 ------------------------ 3 files changed, 25 insertions(+), 25 deletions(-) create mode 100644 arch/arm/mach-tegra/include/mach/pmc.h delete mode 100644 arch/arm/mach-tegra/pmc.h diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c index 3efe80b..2498f74 100644 --- a/arch/arm/mach-tegra/common.c +++ b/arch/arm/mach-tegra/common.c @@ -26,6 +26,7 @@ #include #include +#include #include #include "board.h" @@ -33,7 +34,6 @@ #include "common.h" #include "fuse.h" #include "iomap.h" -#include "pmc.h" #include "apbio.h" #include "sleep.h" #include "pm.h" diff --git a/arch/arm/mach-tegra/include/mach/pmc.h b/arch/arm/mach-tegra/include/mach/pmc.h new file mode 100644 index 0000000..2631c9a --- /dev/null +++ b/arch/arm/mach-tegra/include/mach/pmc.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2012 NVIDIA CORPORATION. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +#ifndef __MACH_TEGRA_PMC_H +#define __MACH_TEGRA_PMC_H + +void tegra_pmc_init(void); +void tegra_pmc_pcie_xclk_clamp(bool clamp); + +#endif diff --git a/arch/arm/mach-tegra/pmc.h b/arch/arm/mach-tegra/pmc.h deleted file mode 100644 index 2631c9a..0000000 --- a/arch/arm/mach-tegra/pmc.h +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2012 NVIDIA CORPORATION. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms and conditions of the GNU General Public License, - * version 2, as published by the Free Software Foundation. - * - * This program is distributed in the hope it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ - -#ifndef __MACH_TEGRA_PMC_H -#define __MACH_TEGRA_PMC_H - -void tegra_pmc_init(void); -void tegra_pmc_pcie_xclk_clamp(bool clamp); - -#endif