From patchwork Wed Jul 2 06:14:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shaveta Leekha X-Patchwork-Id: 366256 X-Patchwork-Delegate: yorksun@freescale.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 08113140096 for ; Wed, 2 Jul 2014 16:15:15 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 622564A02A; Wed, 2 Jul 2014 08:15:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eyUr0N-ZVZQ1; Wed, 2 Jul 2014 08:15:14 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C921C4A036; Wed, 2 Jul 2014 08:15:12 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B1D884A036 for ; Wed, 2 Jul 2014 08:15:07 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NUMHtEP1G+7w for ; Wed, 2 Jul 2014 08:15:04 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2lp0212.outbound.protection.outlook.com [207.46.163.212]) by theia.denx.de (Postfix) with ESMTPS id 535824A02A for ; Wed, 2 Jul 2014 08:15:00 +0200 (CEST) Received: from BLUPR03CA029.namprd03.prod.outlook.com (10.141.30.22) by BL2PR03MB290.namprd03.prod.outlook.com (10.141.68.19) with Microsoft SMTP Server (TLS) id 15.0.974.11; Wed, 2 Jul 2014 06:14:58 +0000 Received: from BL2FFO11FD023.protection.gbl (2a01:111:f400:7c09::145) by BLUPR03CA029.outlook.office365.com (2a01:111:e400:879::22) with Microsoft SMTP Server (TLS) id 15.0.985.8 via Frontend Transport; Wed, 2 Jul 2014 06:14:58 +0000 Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD023.mail.protection.outlook.com (10.173.161.102) with Microsoft SMTP Server (TLS) id 15.0.969.12 via Frontend Transport; Wed, 2 Jul 2014 06:14:58 +0000 Received: from nmglablinux22.freescale.com (nmglablinux22.zin33.ap.freescale.net [10.232.20.244]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id s626EtTj006895; Tue, 1 Jul 2014 23:14:57 -0700 Received: by nmglablinux22.freescale.com (Postfix, from userid 65007187) id 6EB2F5DC92; Wed, 2 Jul 2014 11:44:55 +0530 (IST) From: Shaveta Leekha To: Date: Wed, 2 Jul 2014 11:44:54 +0530 Message-ID: <1404281694-31282-1-git-send-email-shaveta@freescale.com> X-Mailer: git-send-email 1.7.6.GIT X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(6039001)(6009001)(428002)(189002)(199002)(42186005)(4396001)(50466002)(87936001)(102836001)(106466001)(80022001)(50226001)(79102001)(20776003)(77982001)(48376002)(68736004)(104166001)(99396002)(31966008)(46102001)(16796002)(50986999)(101416001)(74662001)(107046002)(84676001)(83322001)(87286001)(33646001)(93916002)(45336002)(64706001)(21056001)(2351001)(6806004)(46386002)(92566001)(92726001)(86372001)(81542001)(62966002)(19580405001)(85852003)(52956003)(77096002)(44976005)(105586002)(95666004)(103686003)(85306003)(26826002)(36756003)(47776003)(88136002)(19580395003)(76482001)(97736001)(77156001)(89996001)(81342001)(83072002)(74502001)(229853001)(90966001); DIR:OUT; SFP:; SCL:1; SRVR:BL2PR03MB290; H:tx30smr01.am.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; A:0; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-Forefront-PRVS: 0260457E99 Received-SPF: None (: nmglablinux22.freescale.com does not designate permitted sender hosts) Authentication-Results: spf=none (sender IP is 192.88.168.50) smtp.mailfrom=b20052@nmglablinux22.freescale.com; X-OriginatorOrg: freescale.com Subject: [U-Boot] [PATCH] powerpc/chassis2: Configure and enable L2 cache for PPC clusters only X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Signed-off-by: Poonam Aggrwal Signed-off-by: Shaveta Leekha --- arch/powerpc/cpu/mpc85xx/cpu_init.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init.c b/arch/powerpc/cpu/mpc85xx/cpu_init.c index ecde00b..7970684 100644 --- a/arch/powerpc/cpu/mpc85xx/cpu_init.c +++ b/arch/powerpc/cpu/mpc85xx/cpu_init.c @@ -547,7 +547,8 @@ int enable_cluster_l2(void) u32 idx = (cluster >> (j*8)) & TP_CLUSTER_INIT_MASK; u32 type = in_be32(&gur->tp_ityp[idx]); - if (type & TP_ITYP_AV) + if ((type & TP_ITYP_AV) && + TP_ITYP_TYPE(type) == TP_ITYP_TYPE_PPC) cluster_valid = 1; }