[U-Boot-Users] Coldfire 532x PATCH: set up cache for different SDRAM size

set up cache correctly for SDRAM size other than 16 MB
Signed-off-by: Wolfgang Wegner w.wegner@astro-kom.de
(Is this format correct? Which command should be used to get proper patches? This patch is for u-boot-5329-early, I can not see a reference in the patch itself?)
-- diff --git a/cpu/mcf532x/start.S b/cpu/mcf532x/start.S index ac44aaa..1010475 100644 --- a/cpu/mcf532x/start.S +++ b/cpu/mcf532x/start.S @@ -268,7 +268,7 @@ _int_handler: icache_enable: move.l #0x01000000, %d0 /* Invalidate cache cmd */ movec %d0, %CACR /* Invalidate cache */ - move.l #(CFG_SDRAM_BASE + 0xc000), %d0 /* Setup cache mask */ + move.l #(CFG_SDRAM_BASE + 0xc000 + ((CFG_SDRAM_SIZE & 0x1fe0) << 11)), %d0 movec %d0, %ACR0 /* Enable cache */
move.l #0x80000200, %d0 /* Setup cache mask */

Hi Stefan,
in message 46BC4BF9.23489.793BA5@w.wegner.astro-kom.de you wrote:
set up cache correctly for SDRAM size other than 16 MB
Signed-off-by: Wolfgang Wegner w.wegner@astro-kom.de
Will you pick this up for 2.3.0-rc1 and ask me to pull, or do you want me to take it, or should I ignore it?
Best regards,
Wolfgang Denk

Wolfgang,
The patch has already applied right before the window close. You can ignore it.
Thanks!
Regards, TsiChung
-----Original Message----- From: u-boot-users-bounces@lists.sourceforge.net [mailto:u-boot-users-bounces@lists.sourceforge.net] On Behalf Of Wolfgang Denk Sent: Tuesday, August 28, 2007 6:14 PM To: Stefan Cc: u-boot-users@lists.sourceforge.net Subject: Re: [U-Boot-Users] Coldfire 532x PATCH: set up cache for differentSDRAM size
Hi Stefan,
in message 46BC4BF9.23489.793BA5@w.wegner.astro-kom.de you wrote:
set up cache correctly for SDRAM size other than 16 MB
Signed-off-by: Wolfgang Wegner w.wegner@astro-kom.de
Will you pick this up for 2.3.0-rc1 and ask me to pull, or do you want me to take it, or should I ignore it?
Best regards,
Wolfgang Denk

In message 4791E710007FEB4BBF83775D787F462F04A18051@az33exm22.fsl.freescale.net you wrote:
The patch has already applied right before the window close. You can ignore it.
Thanks.
Best regards,
Wolfgang Denk
participants (3)
-
Liew Tsi Chung-r5aahp
-
w.wegner@astro-kom.de
-
Wolfgang Denk