From patchwork Wed Jan 23 10:27:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Baltieri X-Patchwork-Id: 2023751 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 4C73B3FD1A for ; Wed, 23 Jan 2013 10:31:18 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TxxZI-0006WC-Vx; Wed, 23 Jan 2013 10:28:33 +0000 Received: from mail-wi0-f171.google.com ([209.85.212.171]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TxxYz-0006Ub-8o for linux-arm-kernel@lists.infradead.org; Wed, 23 Jan 2013 10:28:14 +0000 Received: by mail-wi0-f171.google.com with SMTP id hn14so543770wib.10 for ; Wed, 23 Jan 2013 02:28:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=tdrQGfbF6QKz4P5wwVaduhp50+I1WGYctSorAHsWmQw=; b=YUCUnskE3B0VnZ5z8IW0c6fIhDGZc3xr+EjmmAVBmx5qex/65LhNMnME4W/NlTJRbK lX1jY5YGcXmwdNJSL4RbOIt2CpeGYhM5NySSBme6SzDZxnkBqWNmNY+AoAtwvLm0o5Q9 SPJ9cbBg6PawWX1k+1FEtf/lq6tTGrkvA8/aJXFpCYURXCqSR5Yhv09m/v9HzEv9LKQn BRKy8t3hox9MO2WqgNLY1pocZeOZgLgxTKhluEqUu7bffbS29eULmKNxScOf0mt5QUCK p3v0m0A0Ys9yg33WOZdoqW/Ctuug5dqLma0Ss/PcfVjCH3pCHgYrLK4CCcdWtNRjP4gO +SRw== X-Received: by 10.194.240.129 with SMTP id wa1mr1514824wjc.21.1358936890322; Wed, 23 Jan 2013 02:28:10 -0800 (PST) Received: from localhost ([2a01:2003:1:1e91:8e70:5aff:feac:ad8]) by mx.google.com with ESMTPS id hg17sm26118494wib.1.2013.01.23.02.28.03 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 23 Jan 2013 02:28:09 -0800 (PST) From: Fabio Baltieri To: Linus Walleij , Srinidhi Kasagar , linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: mach-ux500: enable 128KB way L2 cache on DB8540 Date: Wed, 23 Jan 2013 11:27:58 +0100 Message-Id: <1358936878-29806-1-git-send-email-fabio.baltieri@linaro.org> X-Mailer: git-send-email 1.7.12.1 X-Gm-Message-State: ALoCoQlcCwN/wqYFKd/eESUPIRKLozvyIGVJmecz+ISkODJ2YtjW6jDhXSkkj9qMLxFJg+/QkdYk X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130123_052813_440242_731CFDFF X-CRM114-Status: GOOD ( 12.01 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.212.171 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Fabio Baltieri , Maxime Coquelin , linux-kernel@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Maxime Coquelin DB8540 L2 was configured with 64KB way size, but it has 128KB as AP9540. Fix this by modifying ux500_l2x0_init() to use 128KB way size for all cpus in the x540 family. Signed-off-by: Maxime Coquelin Acked-by: Linus Walleij Signed-off-by: Fabio Baltieri --- arch/arm/mach-ux500/cache-l2x0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-ux500/cache-l2x0.c b/arch/arm/mach-ux500/cache-l2x0.c index 75d5b51..1682dfe 100644 --- a/arch/arm/mach-ux500/cache-l2x0.c +++ b/arch/arm/mach-ux500/cache-l2x0.c @@ -46,8 +46,8 @@ static int __init ux500_l2x0_init(void) /* Unlock before init */ ux500_l2x0_unlock(); - /* DB9540's L2 has 128KB way size */ - if (cpu_is_u9540()) + /* DBx540's L2 has 128KB way size */ + if (cpu_is_ux540_family()) /* 128KB way size */ aux_val |= (0x4 << L2X0_AUX_CTRL_WAY_SIZE_SHIFT); else