Appendix C. Initialization Example
C-5
addis r3,r0,BMC_BASE// Set MEAR2 (94)
ori r3,r3,MEMENDADDR2
stwbrx r3,0,r5
addis r4,r0,0xffdf
ori r4,r4,0xbf9f
stwbrx r4,0,r6
addis r3,r0,BMC_BASE// MEEAR1 (98) =
ori r3,r3,XMEMENDADDR1
stwbrx r3,0,r5
addis r4,r0,0x0000
ori r4,r4,0x0000
stwbrx r4,0,r6
addis r3,r0,BMC_BASE// MEEAR2 (9c) =
ori r3,r3,XMEMENDADDR2
stwbrx r3,0,r5
addis r4,r0,0x0000
ori r4,r4,0x0000
stwbrx r4,0,r6
//-------ODCR
addis r3,r0,BMC_BASE// Set ODCR
ori r3,r3,0x73
stwbrx r3,0,r5
sync
lbz r4, 3(r6) // read current register state
//
li r4, 0x00cd // 20 ohm memory bus
//
li r4, 0x00dc // 13 ohm memory bus
//
li r4, 0x00dd // 8 ohm memory bus
li r4, 0x00ff // -default settings-
stb r4, 3(r6) // New settings.
//-------MBEN
addis r3,r0,BMC_BASE// Set MBEN (a0)
ori r3,r3,0xa0
stwbrx r3,0,r5
li
r4,0x03
// Enable bank 0 and 1 (for dual-
stb r4, 0(r6)
// bank SODIMMs.
//-------PGMAX
addis r3,r0,BMC_BASE
ori r3,r3,0xa3
stwbrx r3,0,r5
li r4, 0x0032 // 33MHz value w/ROMFAL=8
stb r4, 3(r6) // write the modified data to CONFIG_DATA
// Wait before initialize other registers
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 ...