diff options
author | Matthew Fettke <[matthew.fettke@gmail.com]> | 2008-02-04 15:38:20 -0600 |
---|---|---|
committer | John Rigby <jrigby@freescale.com> | 2008-03-31 15:09:08 -0600 |
commit | f71d9d91a2cd9c30b2b6369f15c1a46c11537c2b (patch) | |
tree | ce257bd89e793dd65e3ab2dddb37bf27e24fa191 /cpu/mcf52x2/start.S | |
parent | 44e5b9edab077aba6e9b849afa4b7fbd8fd7b02b (diff) | |
download | u-boot-imx-f71d9d91a2cd9c30b2b6369f15c1a46c11537c2b.zip u-boot-imx-f71d9d91a2cd9c30b2b6369f15c1a46c11537c2b.tar.gz u-boot-imx-f71d9d91a2cd9c30b2b6369f15c1a46c11537c2b.tar.bz2 |
ColdFire: Added MCF5275 cpu support.
Signed-off-by: Matthew Fettke <mfettke@videon-central.com>
Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
Acked-by: John Rigby <jrigby@freescale.com>
Diffstat (limited to 'cpu/mcf52x2/start.S')
-rw-r--r-- | cpu/mcf52x2/start.S | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/cpu/mcf52x2/start.S b/cpu/mcf52x2/start.S index c086ca7..f6c58c2 100644 --- a/cpu/mcf52x2/start.S +++ b/cpu/mcf52x2/start.S @@ -197,6 +197,17 @@ _copy_flash: _after_flash_copy: #endif +#ifdef CONFIG_M5275 + /* Initialize IPSBAR */ + move.l #(CFG_MBAR + 1), %d0 /* set IPSBAR address + valid flag */ + move.l %d0, 0x40000000 +/* movec %d0, %MBAR */ + + /* Initialize RAMBAR: locate SRAM and validate it */ + move.l #(CFG_INIT_RAM_ADDR + 0x21), %d0 + movec %d0, %RAMBAR1 +#endif + #if 0 /* invalidate and disable cache */ move.l #0x01000000, %d0 /* Invalidate cache cmd */ @@ -394,6 +405,25 @@ icache_enable: rts #endif +#if defined(CONFIG_M5275) +/* + * Instruction cache only + */ + .globl icache_enable +icache_enable: + move.l #0x01400000, %d0 /* Invalidate cache cmd */ + movec %d0, %CACR /* Invalidate cache */ + move.l #0x0000c000, %d0 /* Setup SDRAM caching */ + movec %d0, %ACR0 /* Enable cache */ + move.l #0x00000000, %d0 /* No other caching */ + movec %d0, %ACR1 /* Enable cache */ + move.l #0x80400100, %d0 /* Setup cache mask */ + movec %d0, %CACR /* Enable cache */ + moveq #1, %d0 + move.l %d0, icache_state + rts +#endif + #ifdef CONFIG_M5282 .globl icache_enable icache_enable: |