From patchwork Tue Nov 22 02:45:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mans Rullgard X-Patchwork-Id: 5256 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id B114723E14 for ; Tue, 22 Nov 2011 02:47:47 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id A7A2CA18500 for ; Tue, 22 Nov 2011 02:47:47 +0000 (UTC) Received: by mail-fx0-f52.google.com with SMTP id a26so11780478faa.11 for ; Mon, 21 Nov 2011 18:47:47 -0800 (PST) Received: by 10.152.105.226 with SMTP id gp2mr10482262lab.28.1321930067521; Mon, 21 Nov 2011 18:47:47 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.41.198 with SMTP id h6cs157251lal; Mon, 21 Nov 2011 18:47:47 -0800 (PST) Received: by 10.227.208.149 with SMTP id gc21mr10608140wbb.10.1321930064465; Mon, 21 Nov 2011 18:47:44 -0800 (PST) Received: from unicorn.mansr.com (unicorn.mansr.com. [78.86.181.103]) by mx.google.com with ESMTP id c14si5720736wbh.125.2011.11.21.18.47.43; Mon, 21 Nov 2011 18:47:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of mru@mansr.com designates 78.86.181.103 as permitted sender) client-ip=78.86.181.103; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of mru@mansr.com designates 78.86.181.103 as permitted sender) smtp.mail=mru@mansr.com Received: by unicorn.mansr.com (Postfix, from userid 51770) id 1DCF416112; Tue, 22 Nov 2011 02:47:43 +0000 (GMT) From: Mans Rullgard To: andy.green@linaro.org Cc: linaro-dev@lists.linaro.org, patches@linaro.org Subject: [PATCH 3/5] OMAP4: fix PL310 prefetch offset setting Date: Tue, 22 Nov 2011 02:45:51 +0000 Message-Id: <1321929953-5956-4-git-send-email-mans.rullgard@linaro.org> X-Mailer: git-send-email 1.7.7.4 In-Reply-To: <1321929953-5956-1-git-send-email-mans.rullgard@linaro.org> References: <1321929953-5956-1-git-send-email-mans.rullgard@linaro.org> The old value needs to be cleared before inserting the new one. Signed-off-by: Mans Rullgard --- arch/arm/mach-omap2/omap4-common.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/omap4-common.c b/arch/arm/mach-omap2/omap4-common.c index 03b13e3..be74f78 100644 --- a/arch/arm/mach-omap2/omap4-common.c +++ b/arch/arm/mach-omap2/omap4-common.c @@ -184,6 +184,7 @@ static int __init omap_l2_cache_init(void) (1 << L2X0_PREFETCH_DOUBLE_LINEFILL_SHIFT); if (cpu_is_omap446x() || (omap_rev() >= OMAP4430_REV_ES2_2)) { + por_ctrl &= ~0x1f; por_ctrl |= L2X0_POR_OFFSET_VALUE; omap_smc1(0x113, por_ctrl); }