From patchwork Thu Jul 25 17:53:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 2833552 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 B43EAC0319 for ; Thu, 25 Jul 2013 17:54:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C642A2035C for ; Thu, 25 Jul 2013 17:54:51 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C227A20354 for ; Thu, 25 Jul 2013 17:54:50 +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 1V2PkH-00051K-LM; Thu, 25 Jul 2013 17:54:33 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V2PkA-0000ZU-M2; Thu, 25 Jul 2013 17:54:26 +0000 Received: from mail-bk0-x229.google.com ([2a00:1450:4008:c01::229]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V2Pjv-0000WY-EF for linux-arm-kernel@lists.infradead.org; Thu, 25 Jul 2013 17:54:12 +0000 Received: by mail-bk0-f41.google.com with SMTP id jc3so807034bkc.0 for ; Thu, 25 Jul 2013 10:53:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=whNufSIti7q8Lp+Ku6YBH9Lr87EYAfvmukV4ssacUGw=; b=d0M2q/5lNT56h3uQVzIm6flyVn31oMyaA6Rn/R2XDho4nwf1sKDJO4fihf6p41wRdb GZmWSq5wDKoWOQnwgPuSfXwKUj9xlRt00hLxWhMWYJ73gNW/rcWfdax3+Cf2PllE9+D4 rOj6OK25PnoQLQ5n5TB3z4/eTB/YpY2SQe1FH0dZnd3n7sFMWEWCw/+zO+4z7xKffAHR KPoRZo+2uUcYaMein3TRi4EDqaS9VbZOxd5ljAv+oy/CKW3lknTu+Lrr8WnyFEYrtoTe Dmlog/kFlkFOpK3RTkEGIhMygUni0Ub1BpvDBM9V5VbLwJAgvRHuoU0CWlf4lILbxTM6 24QQ== X-Received: by 10.204.79.70 with SMTP id o6mr6290940bkk.94.1374774829467; Thu, 25 Jul 2013 10:53:49 -0700 (PDT) Received: from localhost (dotsec.net. [62.75.224.215]) by mx.google.com with ESMTPSA id fc7sm11353884bkc.3.2013.07.25.10.53.45 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 25 Jul 2013 10:53:48 -0700 (PDT) From: Thierry Reding To: Bjorn Helgaas , Stephen Warren Subject: [PATCH v5 02/16] ARM: tegra: Move pmc.h to include/linux/tegra-pmc.h Date: Thu, 25 Jul 2013 10:53:16 -0700 Message-Id: <1374774810-18459-3-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 1.8.1.5 In-Reply-To: <1374774810-18459-1-git-send-email-thierry.reding@gmail.com> References: <1374774810-18459-1-git-send-email-thierry.reding@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130725_135411_620283_19D24B44 X-CRM114-Status: GOOD ( 14.92 ) X-Spam-Score: -2.0 (--) Cc: Thomas Petazzoni , devicetree@vger.kernel.org, Russell King , Jason Cooper , Jay Agarwal , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@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.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 From: Thierry Reding 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 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 cdb08a1..e1c2df2 100644 --- a/arch/arm/mach-tegra/pmc.h +++ b/arch/arm/mach-tegra/pmc.h @@ -37,6 +37,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