From patchwork Wed Apr 3 14:45:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 2388151 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 766AE3FD8C for ; Wed, 3 Apr 2013 14:53:22 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UNP0d-0006vA-R1; Wed, 03 Apr 2013 14:49:56 +0000 Received: from moutng.kundenserver.de ([212.227.17.8]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UNOwf-0004ek-Gq for linux-arm-kernel@lists.infradead.org; Wed, 03 Apr 2013 14:45:51 +0000 Received: from mailbox.adnet.avionic-design.de (mailbox.avionic-design.de [109.75.18.3]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0M6RLT-1UZK5l1W1b-00xpYL; Wed, 03 Apr 2013 16:45:26 +0200 Received: from localhost (localhost [127.0.0.1]) by mailbox.adnet.avionic-design.de (Postfix) with ESMTP id 9B8662A280CB; Wed, 3 Apr 2013 16:45:25 +0200 (CEST) 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 vFKsaZCAEDs8; Wed, 3 Apr 2013 16:45:24 +0200 (CEST) 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 68B592A280EE; Wed, 3 Apr 2013 16:45:19 +0200 (CEST) Received: from localhost (avionic-0098.adnet.avionic-design.de [172.20.31.233]) by mailman.adnet.avionic-design.de (Postfix) with ESMTP id AF940100257; Wed, 3 Apr 2013 16:45:16 +0200 (CEST) From: Thierry Reding To: Grant Likely , Rob Herring , Stephen Warren , Bjorn Helgaas Subject: [PATCH v3 06/12] ARM: tegra: Move pmc.h to include/linux/tegra-pmc.h Date: Wed, 3 Apr 2013 16:45:12 +0200 Message-Id: <1365000318-28256-7-git-send-email-thierry.reding@avionic-design.de> X-Mailer: git-send-email 1.8.2 In-Reply-To: <1365000318-28256-1-git-send-email-thierry.reding@avionic-design.de> References: <1365000318-28256-1-git-send-email-thierry.reding@avionic-design.de> X-Provags-ID: V02:K0:RoNmn9kuU8gxg4oYs0h7582Ei1pqzNVh9j0wNMQ5Uxr VBB5RhNSA1lCNQNsBoDyJ6hBYSCaF69bThoxL/iJEc9redHn9j GlWSFT6GA5K1djQTuxJ9VD3Ouqy1W94hYHHFymsoTA7/aUe1Tp wmKebK9gjMjd7bgEqTklkFrsE57c/UGhapjcMASwEhjjdNZgMb 7P9qXEGQC6/vcu/SAZLQuohn+ASO8RLjcA3h1Baf9mUv9K/X4v 12mJAyEngO/BNLBGKOoOGbAn4eTOtjrYvDGp6gM6MOCTXVuIs/ mAL+Ckd8PHSEGEZpR4lxv7dSzBXeN1OSThoPebd4LKQQA2vkcr umZD7X6Pq0ityLFgTfv5Z4Q1vmAyMh9k2drcSrCONe4nL5FLg1 JS6XAPvZS9D7C33W/eRHbIGga8afet18dLMZfzZ6CxKUCvxkWl tRz1H X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130403_104549_803075_AD99EB6A X-CRM114-Status: GOOD ( 14.06 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.17.8 listed in list.dnswl.org] 1.7 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 , Russell King , Arnd Bergmann , linux-pci@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org, Jason Gunthorpe , linux-tegra@vger.kernel.org, Andrew Murray , 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 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 --- Changes in v2: - keep tegra_pmc_init() prototype in arch/arm/mach-tegra/pmc.h - move pmc.h to includex/linux/tegra-pmc.h Changes in v3: - update subject to match new location arch/arm/mach-tegra/pmc.h | 1 - include/linux/tegra-pmc.h | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 include/linux/tegra-pmc.h diff --git a/arch/arm/mach-tegra/pmc.h b/arch/arm/mach-tegra/pmc.h index c778451..7d44710 100644 --- a/arch/arm/mach-tegra/pmc.h +++ b/arch/arm/mach-tegra/pmc.h @@ -23,6 +23,5 @@ int tegra_pmc_cpu_power_on(int cpuid); int tegra_pmc_cpu_remove_clamping(int cpuid); void tegra_pmc_init(void); -void tegra_pmc_pcie_xclk_clamp(bool clamp); #endif diff --git a/include/linux/tegra-pmc.h b/include/linux/tegra-pmc.h new file mode 100644 index 0000000..b6296bf --- /dev/null +++ b/include/linux/tegra-pmc.h @@ -0,0 +1,23 @@ +/* + * 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 __LINUX_TEGRA_PMC_H +#define __LINUX_TEGRA_PMC_H + +void tegra_pmc_pcie_xclk_clamp(bool clamp); + +#endif