##############################################
# Local Bus Interface (LBIU) Configuration
##############################################
## CS0 - 8MB FLASH
#writemem.l 0xe0005000 0xff001001 # BR0 base address at 0xFF000000, port size 16 bit, GPCM, valid
#writemem.l 0xe0005004 0xff000ff7 # OR0 16MB flash size (two 8M), 15 w.s., timing relaxed
# CS0 - 8MB FLASH
writemem.l 0xe0005000 0xff001001 # BR0 base address at 0xFE000000, port size 16 bit, GPCM, valid
writemem.l 0xe0005004 0xff000ff7 # OR0 16MB flash size (two 8M), 15 w.s., timing relaxed
## CS1 - board VSC7385
#writemem.l 0xe0005008 0xf8000801 # BR1 base address at 0xFE400000, port size 8 bit, GPCM, valid
#writemem.l 0xe000500c 0xfffe09ff # OR1 128KB size, 15 w.s., timing relaxed, external TA
# CS2 - 64MB SDRAM
##writemem.l 0xe0005014 0xfc006901 # OR2 32KB size, 13 rows, 9 cols, 64MB
##writemem.l 0xe0005010 0xf0001861 # BR2 base address at 0xF0000000, port size 32 bit, SDRAM, valid
# CS2 - LED & Board ID
writemem.l 0xe0005014 0xffe0ef97 # OR2 128KB size
writemem.l 0xe0005010 0xf8000801 # BR2 base address at 0xF8000000, port size 8 bit, GPCM, valid
---------------------------------------------------------------------------------------------------------------------------
The source code above is auto generated code from Code Warrior 8.8 When I make a new PPC project with MPC8349E + MITX(rev1) board. You can easily find comments and code mismatches. (See red color) specially in the case of the base register. In the data sheet, 17 bits represent the base address, but the code and the comment are some correct and some are wrong. What should I trust?