AN2347 Freescale Semiconductor / Motorola, AN2347 Datasheet - Page 29

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
mpc7410_init
This function initialize the MPC7410.
mfspr
Set up the BATs
29
stw
addi
addis
ori
stw
addis
ori
stw
addi
addis
ori
stw
mtspr
bclr
addi
addis
ori
addis
ori
mtspr
mtspr
isync
addis
ori
addis
ori
r31,LR
r3, 0, (r4)
r4, r7, EE_B0_MASK# Set r4 as pointer to required register
r3, 0, 0xFFF0
r3, r3, 0x0000
r3, 0, (r4)
r3, 0, 0b0001010001100101
r3, r3, 0b0100010010110000
r3, 0, (r4)
r4, r7, I2C0_CSR # Set r4 as pointer to required register
r3, 0, 0x0000
r3, r3, 0xA000
r3, 0, (r4)
LR, r31
20, 0
r4, r7, EE_B0_CTRL# Set r4 as pointer to required register
Using an MPC8260 and an MPC7410 with Shared Memory
Freescale Semiconductor, Inc.
For More Information On This Product,
# Save the Link Register value. The link register's
r3, 0, 0x0000
r3, r3, 0x1fff
r4, 0, 0x0000
r4, r4, 0x0012
dbat3l, r4
dbat3u, r3
r3, 0, 0xf000
r3, r3, 0x1fff
r4, 0, 0xf000
r4, r4, 0x0002
Go to: www.freescale.com
# Initialise register
# Initialise register
# Initialise register
# restore Link Register
# Jump unconditionally to address in LR
value will be restored so that this function can
return to the calling address.
# Initialise register
# Cacheable global 256M from 0
# Cacheable 256M from 0xf000_0000
MOTOROLA

Related parts for AN2347