From: Lanttor <lanttor.guo@freescale.com>
To: Jin Zhengxiong-R64188 <Jason.Jin@freescale.com>
Cc: uClinux development list <uclinux-dev@uclinux.org>,
linux-m68k@vger.kernel.org
Subject: [PATCH]: fix CACHE_ENABLE macro on mcf532x platform
Date: Thu, 30 Jul 2009 17:29:44 +0800 [thread overview]
Message-ID: <4A716808.9030705@freescale.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 220 bytes --]
Hi,
This patch is to fix CACHE_ENABLE macro on the mcf532x platform, which
is defined in the file: arch/m68k/include/asm/mcfcache.h.
This patch is based on Linus' current git tree.
Thanks,
--
Best Regards,
Lanttor
[-- Attachment #2: 0001-Modify-the-CACHE_ENABLE-macro-on-mcf5329-platform.patch --]
[-- Type: text/x-diff, Size: 1221 bytes --]
>From 042e0e34bd5a293383e480955df2fecf0770b54f Mon Sep 17 00:00:00 2001
From: Lanttor Guo <lanttor.guo@freescale.com>
Date: Thu, 30 Jul 2009 16:58:41 +0800
Subject: [PATCH] Modify the CACHE_ENABLE macro on mcf5329 platform
Setting ACR0[ADDR_MASK] correctly.
For a given request address, if the ACR is valid and the
request mode matches the mode specified in the supervisor
mode field(ACRn[S]), hit determination is specified as:
ACRx_hit = 0;
if ((address[31:24] & ~ACRn[23:16]) == (ACRn[31:24] & ~ACRn[23:16]))
ACRx_hit = 1;
Signed-off-by: Lanttor Guo <lanttor.guo@freescale.com>
---
arch/m68k/include/asm/mcfcache.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/m68k/include/asm/mcfcache.h b/arch/m68k/include/asm/mcfcache.h
index c042634..dc8c14c 100644
--- a/arch/m68k/include/asm/mcfcache.h
+++ b/arch/m68k/include/asm/mcfcache.h
@@ -97,7 +97,7 @@
movel #0x01000000,%d0 /* invalidate cache cmd */
movec %d0,%CACR /* do invalidate cache */
nop
- movel #0x4001C000,%d0 /* set SDRAM cached (write-thru) */
+ movel #0x400FC000,%d0 /* set SDRAM cached (write-thru) */
movec %d0,%ACR0
movel #0x00000000,%d0 /* no other regions cached */
movec %d0,%ACR1
--
1.6.3.2
next reply other threads:[~2009-07-30 9:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-30 9:29 Lanttor [this message]
2009-07-30 21:23 ` [PATCH]: fix CACHE_ENABLE macro on mcf532x platform lanttor.g
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A716808.9030705@freescale.com \
--to=lanttor.guo@freescale.com \
--cc=Jason.Jin@freescale.com \
--cc=linux-m68k@vger.kernel.org \
--cc=uclinux-dev@uclinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox