; bdiGDB configuration file for MPC8349EA-MDS board ; ------------------------------------------------- ; ; For Pilot Revision board with MPC8349EA Rev. 3.1 ; ; The values used to configure the memory controller ; are the ones U-boot uses to setup my board. ; Your system may need different ones !!! ; [INIT] ; init core register WREG MSR 0x00001002 ;MSR : ME,RI ; ; Move MBAR to 0xe0000000 WM32 0xff400000 0xe0000000 ;MABR to 0xe0000000 ; ; Initialize LAWBAR's WM32 0xe0000020 0xfe000000 ;LBLAWBAR0 : Flash WM32 0xe0000024 0x80000018 ;LBLAWAR0 WM32 0xe0000028 0xf8000000 ;LBLAWBAR1 : BCSR WM32 0xe000002C 0x8000000e ;LBLAWAR1 WM32 0xe0000030 0x00000000 ;LBLAWBAR2 WM32 0xe0000034 0x00000000 ;LBLAWAR2 WM32 0xe0000038 0x00000000 ;LBLAWBAR3 WM32 0xe000003c 0x00000000 ;LBLAWAR3 ; WM32 0xe00000A0 0x00000000 ;DDRLAWBAR0 : DDR Main SODIMM WM32 0xe00000A4 0x8000001b ;DDRLAWAR0 WM32 0xe00000A8 0x00000000 ;DDRLAWBAR1 WM32 0xe00000AC 0x00000000 ;DDRLAWAR1 ; ; Setup chip selects WM32 0xe0005004 0xfe000ff7 ;OR0 : Flash 32M WM32 0xe0005000 0xfe001001 ;BR0 : Flash WM32 0xe000500C 0xffff88f0 ;OR1 : BCSR 32K WM32 0xe0005008 0xf8000801 ;BR1 : BCSR ; ; Setup DDR2 (ECC enabled) WM32 0xe0000128 0x80080001 ;DDRCDR WM32 0xe0002130 0x02000000 ;DDR_CLK_CNTL WM32 0xe0002000 0x00000000 ;CS0_BNDS WM32 0xe0002008 0x00000000 ;CS1_BNDS WM32 0xe0002010 0x0000000f ;CS2_BNDS : 0x00000000 - 0x0fffffff WM32 0xe0002018 0x00000000 ;CS3_BNDS WM32 0xe0002080 0x00000000 ;CS0_CONFIG WM32 0xe0002084 0x00000000 ;CS1_CONFIG WM32 0xe0002088 0x80330102 ;CS2_CONFIG WM32 0xe000208C 0x00000000 ;CS3_CONFIG WM32 0xe0002104 0x00220802 ;TIMING_CFG_0 WM32 0xe0002108 0x39377322 ;TIMING_CFG_1 WM32 0xe000210C 0x2f9848ca ;TIMING_CFG_2 WM32 0xe0002100 0x00000000 ;TIMING_CFG_3 WM32 0xe0002110 0x63000000 ;DDR_CFG WM32 0xe0002114 0x00401010 ;DDR_CFG_2 WM32 0xe0002118 0x07940242 ;DDR_MODE WM32 0xe000211C 0x00000000 ;DDR_MODE_2 WM32 0xe0002124 0x06180100 ;DDR_INTERVAL WM32 0xe0002128 0xdeadbeef ;DDR_DATA_INI WM32 0xe0002148 0x00000000 ;DDR_INIT_ADD DELAY 100 WM32 0xe0002110 0xe3000000 ;DDR_CFG DELAY 500 ;time to fill DDR2 memory ; ; ; Enable flash programming ;WM8 0xf8000001 0x0C ;enable flash write in BCSR [TARGET] CPUTYPE 8349 ;the CPU type JTAGCLOCK 1 ;use 16 MHz JTAG clock POWERUP 2000 ;start delay after power-up detected in ms WAKEUP 500 ;give reset time to complete STARTUP RESET ;halt immediately at the boot vector ;RCW 0x8460a000 0x43050000 ;override reset configuration words ;BOOTADDR 0xfff00100 ;boot address used for start-up break ;RCW 0x8060a000 0x43050000 ;override reset configuration words ;BOOTADDR 0x00000100 ;boot address used for start-up break BREAKMODE SOFT ;SOFT or HARD, HARD uses PPC hardware breakpoint STEPMODE HWBP ;TRACE or HWBP, HWBP uses a hardware breakpoint ;MMU XLAT 0xc0000000 ;enable address translation [HOST] IP 151.120.25.119 ;FILE E:\cygwin\home\demo\mpc860\fibo.elf ;FORMAT ELF FILE E:\temp\dump512k.bin FORMAT BIN 0x10000 LOAD MANUAL ;load code MANUAL or AUTO after reset PROMPT 8349EA> [FLASH] CHIPTYPE MIRRORX16 ;Flash type: Spansion S29GL256N CHIPSIZE 0x02000000 ;The size of one flash chip in bytes BUSWIDTH 16 ;The width of the flash memory bus in bits (8 | 16 | 32 | 64) WORKSPACE 0x1000 ;workspace in DDR RAM FILE E:\temp\dump1024k.bin FORMAT BIN 0xff000000 ERASE 0xff000000 0x20000 8 ; erase 8 sectors [REGS] FILE $reg8349ea.def