AN2347 Freescale Semiconductor / Motorola, AN2347 Datasheet - Page 34

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
#
Configure EPIC
init_siu
This function initialize the MPC8260's SIU.
Leave BCR as defined by hard reset configuration (which programs it for 60x mode)
Go ahead and disable the s/w watchdog just to ease my mind (although it shouldn't have time to go off in a
simulation.)
For SIUMCR: ESE=1 (enable GBL), DPPC=01, L2CPC=01 (IRQ function), CS10PC=01 (BCTL1
function), BCTLC=01 (W/R buffers)
34
addis
sync
addis
bl init_siu
addis
ori
addis
stwbrx
mtspr
bclr
addis
ori
stw
sync
addis
stw
sync
bclr
r4, 0, 0xF000
r4, 0, 0xF001
r4, r0, 0xf804
r4, r4, 0x1020
r5, r0, 0x2000
r5, r0, r4
LR, r31
20, 0
r3, 0, 0xFFFF
r3, r3, 0xFFC0
r3, SYPCR(r4)
r3, 0, 0x4505
r3, SIUMCR(r4)
20, 0
Using an MPC8260 and an MPC7410 with Shared Memory
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
# IMMR base addr = 0xF0000000, therefore
# jump unconditionally to effective address in
registers start at 0xF0010000
# IMMR base addr = 0xF0000000
# set mixed mode
# restore original Link Register value
# jump unconditionally to effective
# SYPCR = 0xFFFFFFC0
Link register
address in Link register
MOTOROLA

Related parts for AN2347