From patchwork Wed May 17 14:22:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 763620 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3wScxD1JNgz9s7k for ; Thu, 18 May 2017 01:02:24 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="KYGsmPlW"; dkim-atps=neutral Received: by lists.denx.de (Postfix, from userid 105) id CDF8BC22695; Wed, 17 May 2017 14:53:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 51B14C225F1; Wed, 17 May 2017 14:53:48 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 87CBBC225F9; Wed, 17 May 2017 14:23:31 +0000 (UTC) Received: from mail-oi0-f53.google.com (mail-oi0-f53.google.com [209.85.218.53]) by lists.denx.de (Postfix) with ESMTPS id 2B288C22175 for ; Wed, 17 May 2017 14:23:31 +0000 (UTC) Received: by mail-oi0-f53.google.com with SMTP id l18so16977424oig.2 for ; Wed, 17 May 2017 07:23:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=b1rc9Dcokkiw1oFTK0QF4e8VTKZOPfaMEzuSYQB9af8=; b=KYGsmPlWEdlC8nN00pkvPdOrbKrNc5D/tEn2pV+jYclmaVcNEvkzD5zNaBHuReEBQJ euxE1gEQC1jy/mToMu8AdkzBogpOwr+WjIRJX3MqX9kOBkrgWkXQLymxFO2jEUusW9Qb K7Cc2p5cnENM08Ul/tsEWC/cAlIKt0ozr4pOiR5mWDvE2TLV3IsCPOl45AufNpHBqfaH cZsRlByhpWdzUKlDPgfuUen+pfh0mZTm6ziuc4Htro3IWqy/crsu1cV2FxLyyqqCFtA4 /HXshciigcMAK1WVS/m/2KKndbNjnh0IuJY7afxxET0+XmRGku57mOK/ShMtX3g77rB1 MZKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=b1rc9Dcokkiw1oFTK0QF4e8VTKZOPfaMEzuSYQB9af8=; b=bwtGtSAQXx+GjpO+vCvfXd+uU0B1CsGwIa1+ox0yUbZ5W2HTMoNiuh2MYOcW9ANc70 O3JeIkxkXqTOkQlDeRLVZCYC44OKqgZDdehpJtR+dVEnplzGVzFWaOE67lTw2AUBFb4D fUI1Bh5dX+3qpr9WZnNNPu7KjGneqXwqs/Gd9oSKWMk+Kn1Xk4mHN2z61rVmA9lHpgsU nM2LlyLwu0whmorONYWR5bpy2GoaUvtO0tgRpnrtKNKJkiYczNaYP1DcSL8cwDmwyubP AqSWHzXdrVfz/HGfkbQt8H9Dqr3bGPPOJIkk07PRGpl2zSXM9ZfofnZOqEe84X8wC0Q4 /exA== X-Gm-Message-State: AODbwcCbDnf0/0HV8ql2h0Sr80Wd9KUGVf1FRKei6Q//dSIo3iRoiQ77 D+IZVO73JSYS4ElA X-Received: by 10.202.87.76 with SMTP id l73mr1613929oib.191.1495031009722; Wed, 17 May 2017 07:23:29 -0700 (PDT) Received: from kaki.bld.corp.google.com ([100.100.184.96]) by smtp.gmail.com with ESMTPSA id y31sm1064584ota.47.2017.05.17.07.23.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 May 2017 07:23:29 -0700 (PDT) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id 4D5E340563; Wed, 17 May 2017 08:23:28 -0600 (MDT) From: Simon Glass To: U-Boot Mailing List Date: Wed, 17 May 2017 08:22:39 -0600 Message-Id: <20170517142311.29484-7-sjg@chromium.org> X-Mailer: git-send-email 2.13.0.303.g4ebf302169-goog In-Reply-To: <20170517142311.29484-1-sjg@chromium.org> References: <20170517142311.29484-1-sjg@chromium.org> Cc: Tom Rini Subject: [U-Boot] [PATCH 06/38] common: Move get_OPB_freq() and get_PCI_freq() to PPC header X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" These should not be in common.h. Move the to an arch-specific header. Signed-off-by: Simon Glass --- arch/powerpc/include/asm/ppc4xx.h | 3 +++ include/common.h | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/include/asm/ppc4xx.h b/arch/powerpc/include/asm/ppc4xx.h index b8b0ff9f25..30e6559ba4 100644 --- a/arch/powerpc/include/asm/ppc4xx.h +++ b/arch/powerpc/include/asm/ppc4xx.h @@ -289,6 +289,9 @@ static inline void set_mcsr(u32 val) int ppc4xx_pci_sync_clock_config(u32 async); +unsigned long get_OPB_freq(void); +unsigned long get_PCI_freq(void); + #endif /* __ASSEMBLY__ */ /* for multi-cpu support */ diff --git a/include/common.h b/include/common.h index 6dd0d2f552..8b64407fd1 100644 --- a/include/common.h +++ b/include/common.h @@ -649,10 +649,6 @@ int get_clocks (void); #if defined(CONFIG_MPC5xxx) int prt_mpc5xxx_clks (void); #endif -#ifdef CONFIG_4xx -ulong get_OPB_freq (void); -ulong get_PCI_freq (void); -#endif #if defined(CONFIG_S3C24X0) || \ defined(CONFIG_LH7A40X) || \ defined(CONFIG_EP93XX)