Appendix C. Initialization Example
C-3
or r4, r4, r0
stwbrx r4,0,r6
//------ Embedded Unitility Memory Block Base Address Register( eumbbar )
addis r3,r0,BMC_BASE // EUMBBAR (78) = 0xFC00_0000
ori r3,r3,0x0078
stwbrx r3,0,r5
lis r4,0xfc00// Don’t forget to map this area
stwbrx r4,0,r6
// into the BATs
sync
//! ===MCCR1=== MEMORY CONTROL CONFIGURATION
//!
addis r3,r0,BMC_BASE // MCCR1 (F0) = 0x8800_0000
ori r3,r3,0x00F0
stwbrx r3,0,r5
addis r4,r0,0x8800
ori r4,r4,0x0000// Set all banks to 64Mbit, 4 bank parts
stwbrx r4,0,r6
sync
//! ===MCCR2=== MEMORY CONTROL CONFIGURATION
//!
addis r3,r0,BMC_BASE// Set MCCR2 (F4)
ori r3,r3,0x00F4
stwbrx r3,0,r5
sync
lis r4, 0x0000 // Self-Refresh value
//
ori r4, r4, 0x06b8 // 33 MHZ - REFINT
ori r4, r4, 0x023C // 100 MHZ - REFINT
stwbrx r4,0,r6
sync
//! ===MCCR3=== MEMORY CONTROL CONFIGURATION
//!
addis r3,r0,BMC_BASE// Set MCCR3 (F8)
ori r3,r3,0x00F8
stwbrx r3,0,r5
sync
lis r4, 0x7840 // RDLAT=4 (Mem CAS 1), REFREC=1000,
ori r4, r4, 0x0000 // No EDO/FP parameters set (SDRAM)
stwbrx r4,0,r6
sync
//! ===MCCR4=== MEMORY CONTROL CONFIGURATION
//!
Summary of Contents for MPC8240
Page 1: ...MPC8240UM D Rev 1 1 2001 MPC8240 Integrated Processor User s Manual ...
Page 38: ...xviii MPC8240 Integrated Processor User s Manual TABLES Table Number Title Page Number ...
Page 48: ...xlviii MPC8240 Integrated Processor User s Manual Acronyms and Abbreviations ...
Page 312: ...6 94 MPC8240 Integrated Processor User s Manual ROM Flash Interface Operation ...
Page 348: ...7 36 MPC8240 Integrated Processor User s Manual PCI Host and Agent Modes ...
Page 372: ...8 24 MPC8240 Integrated Processor User s Manual DMA Register Descriptions ...
Page 394: ...9 22 MPC8240 Integrated Processor User s Manual I2O Interface ...
Page 412: ...10 18 MPC8240 Integrated Processor User s Manual Programming Guidelines ...
Page 454: ...12 14 MPC8240 Integrated Processor User s Manual Internal Arbitration ...
Page 466: ...13 12 MPC8240 Integrated Processor User s Manual Exception Latencies ...
Page 516: ...16 14 Watchpoint Trigger Applications ...
Page 538: ...B 16 MPC8240 Integrated Processor User s Manual Setting the Endian Mode of Operation ...
Page 546: ...C 8 MPC8240 Integrated Processor User s Manual ...
Page 640: ...INDEX Index 16 MPC8240 Integrated Processor User s Manual ...