From patchwork Fri Jun 17 13:10:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 100803 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 5260BB7116 for ; Fri, 17 Jun 2011 23:17:12 +1000 (EST) Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 4AC31B6FDF for ; Fri, 17 Jun 2011 23:17:02 +1000 (EST) Received: by wwi36 with SMTP id 36so1995262wwi.14 for ; Fri, 17 Jun 2011 06:16:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=XnxYUMgo0aWYq16UhEGZFr9IPOIrop0xYUABY8FPM+E=; b=O5UizJcWLkwtRrEQsA6+rq0icuEU69v5gIcgyESTY+rCwBmZwRyZGMO5ih1VfMzVMp es+62Grm1pZ/7/s9CmWQo67dxsaHKuitI8RO+N2Bv/lrsvWAEsLcRpLb7bv2LOuhOaLI O/n7JhI22hUsfVQ/YuC7Y61SY8dvoxcNsBtNM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=hGR2RCbZopWiZOZ+2jk5FEJJa2LPfl+dw28ztxhN3vujCqNQIpuSa+XnOFyRyok/iT 34MX4+qVWP7I/mN5hZ6zRpQyYirqwYaysSmx4Y3q+MHfGkzqwfMGcC+N20pFrSLWoXwH 3xDPG/19Dxi9cdkKycCyYEhkzK5nIhv1jYRac= Received: by 10.216.239.73 with SMTP id b51mr2030315wer.63.1308316198991; Fri, 17 Jun 2011 06:09:58 -0700 (PDT) Received: from doriath.ww600.siemens.net ([91.213.169.4]) by mx.google.com with ESMTPS id o75sm1395328weq.16.2011.06.17.06.09.57 (version=SSLv3 cipher=OTHER); Fri, 17 Jun 2011 06:09:58 -0700 (PDT) From: Dmitry Eremin-Solenikov To: linuxppc-dev@lists.ozlabs.org, cpufreq@vger.kernel.org Subject: [PATCH 1/2] ppc: enable scom access functions on Maple Date: Fri, 17 Jun 2011 17:10:06 +0400 Message-Id: <1308316207-9075-1-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 1.7.5.3 Cc: Paul Mackerras , Dave Jones X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Enable functions used to access SCOM if PPC_MAPLE is defined: they are used by cpufreq driver to control hardware. Signed-off-by: Dmitry Eremin-Solenikov --- arch/powerpc/kernel/misc_64.S | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/misc_64.S b/arch/powerpc/kernel/misc_64.S index e89df59..616921e 100644 --- a/arch/powerpc/kernel/misc_64.S +++ b/arch/powerpc/kernel/misc_64.S @@ -339,7 +339,7 @@ _GLOBAL(real_205_writeb) #endif /* CONFIG_PPC_PASEMI */ -#ifdef CONFIG_CPU_FREQ_PMAC64 +#if defined(CONFIG_CPU_FREQ_PMAC64) || defined(CONFIG_CPU_FREQ_MAPLE) /* * SCOM access functions for 970 (FX only for now) * @@ -408,7 +408,7 @@ _GLOBAL(scom970_write) /* restore interrupts */ mtmsrd r5,1 blr -#endif /* CONFIG_CPU_FREQ_PMAC64 */ +#endif /* CONFIG_CPU_FREQ_PMAC64 || CONFIG_CPU_FREQ_MAPLE */ /*