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: 261825 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id EE9142C0097 for ; Fri, 26 Jul 2013 03:54:24 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757030Ab3GYRxz (ORCPT ); Thu, 25 Jul 2013 13:53:55 -0400 Received: from mail-bk0-f42.google.com ([209.85.214.42]:41149 "EHLO mail-bk0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757208Ab3GYRxv (ORCPT ); Thu, 25 Jul 2013 13:53:51 -0400 Received: by mail-bk0-f42.google.com with SMTP id jk13so820561bkc.15 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 Cc: Russell King , Jason Cooper , Thomas Petazzoni , Jay Agarwal , linux-pci@vger.kernel.org, linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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> Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org 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