AN2347 Freescale Semiconductor / Motorola, AN2347 Datasheet - Page 31

no-image

AN2347

Manufacturer Part Number
AN2347
Description
Using an MPC8260 and an MPC7410 with Shared Memory
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Main Initialization Routine—P2N.2
Main Initialization Routine—P2N.2
mpc8260_init
This function initialize the MPC8260's bus interfaces and memories.
Set up the BATs
31
addis
mtspr
sync
mfspr
ori
andi.
mtspr
isync
sync
mtspr
isync
sync
mfspr
ori
andi.
mtspr
isync
sync
mtspr
isync
sync
mtspr
bclr
mfspr
addis
ori
r10, r0,(SIZ1M|CLK20|RAMSB|OH05|L2E|L2DO)@ha
l2cr, r10
r5, hid0
r6, r5, 0x4400# Data cache only 0x4400
r5, r6, 0xfbff# clear the invalidate bit 0x4000
hid0, r6
hid0, r5
r5, hid0
r6, r5, 0x8800
r5, r6, 0xf7ff
hid0, r6
hid0, r5
LR, r31
20, 0
r3, 0, 0xf000
r3, r3, 0x1fff
Using an MPC8260 and an MPC7410 with Shared Memory
r31, LR
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
# turn on the D cache.
# restore original Link Register value
# jump unconditionally to effective address
# Save the Link Register value. The link
register's value will be restored so that this
function can return to the calling address.
# non-cacheable 256M from 0xf000_0000
# turn on the I cache.
# Instruction cache only! 0x8800
# clear the invalidate bit 0x8000
in Link register
; Set enable bit
MOTOROLA

Related parts for AN2347