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: 210844 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 19EF72C0628 for ; Thu, 10 Jan 2013 07:44:43 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934240Ab3AIUns (ORCPT ); Wed, 9 Jan 2013 15:43:48 -0500 Received: from moutng.kundenserver.de ([212.227.126.171]:55566 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933967Ab3AIUnq (ORCPT ); Wed, 9 Jan 2013 15:43:46 -0500 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 Cc: Grant Likely , Rob Herring , Russell King , Stephen Warren , Bjorn Helgaas , Andrew Murray , Jason Gunthorpe , Arnd Bergmann , Thomas Petazzoni , devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@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 Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.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