; bdiGDB configuration file for MPC8360E-MDS board ; ------------------------------------------------ ; For Pilot Revision board with Revision 2.0 Silicon ; ; 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 : 32M WM32 0xe0000028 0xf8000000 ;LBLAWBAR1 : BCSR WM32 0xe000002C 0x8000000e ;LBLAWAR1 : 32K WM32 0xe0000030 0xf0000000 ;LBLAWBAR2 : SDRAM WM32 0xe0000034 0x80000019 ;LBLAWAR2 : 64M WM32 0xe0000038 0x00000000 ;LBLAWBAR3 WM32 0xe000003c 0x00000000 ;LBLAWAR3 ; WM32 0xe00000A0 0x00000000 ;DDRLAWBAR0: DDR Main SODIMM WM32 0xe00000A4 0x8000001b ;DDRLAWAR0 : 256M WM32 0xe00000A8 0x00000000 ;DDRLAWBAR1 WM32 0xe00000AC 0x00000000 ;DDRLAWAR1 ; ; Setup chip selects WM32 0xe0005004 0xfe006ff7 ;OR0 : Flash 32M WM32 0xe0005000 0xfe001001 ;BR0 : Flash WM32 0xe000500C 0xffffe9f7 ;OR1 : BCSR 32K WM32 0xe0005008 0xf8000801 ;BR1 : BCSR WM32 0xe0005014 0xfc006901 ;OR2 : SDRAM 64M WM32 0xe0005010 0xf0001861 ;BR2 : SDRAM ; ; Setup SDRAM WM32 0xe00050d4 0x80000004 ;LCRR : CLKDIV = 4 WM32 0xe00050a4 0x32000000 ;LSRT WM32 0xe0005084 0x20000000 ;MRTPR WM32 0xe0005094 0x0063b723 ;LSDMR : normal operation WM32 0xe0005094 0x2863b723 ;LSDMR : prechage all WM32 0xf0000000 0x000000ff WM32 0xe0005094 0x0863b723 ;LSDMR : auto refresh WM32 0xf0000000 0x000000ff WM32 0xf0000000 0x000000ff WM32 0xf0000000 0x000000ff WM32 0xf0000000 0x000000ff WM32 0xf0000000 0x000000ff WM32 0xf0000000 0x000000ff WM32 0xf0000000 0x000000ff WM32 0xf0000000 0x000000ff WM32 0xe0005094 0x1863b723 ;LSDMR : mode register write WM32 0xf00000cc 0x000000ff WM32 0xe0005094 0x4063b723 ;LSDMR : refresh enable, normal operation ; ; Setup DDR2 WM32 0xe0000128 0x80000001 ;DDRCDR WM32 0xe0002130 0x82000000 ;DDR_CLK_CNTL WM32 0xe0002000 0x0000000f ;CS0_BNDS WM32 0xe0002008 0x00000000 ;CS1_BNDS WM32 0xe0002010 0x00000000 ;CS2_BNDS WM32 0xe0002018 0x00000000 ;CS3_BNDS WM32 0xe0002080 0x80440102 ;CS0_CONFIG WM32 0xe0002084 0x00000000 ;CS1_CONFIG WM32 0xe0002088 0x00000000 ;CS2_CONFIG WM32 0xe000208C 0x00000000 ;CS3_CONFIG WM32 0xe0002104 0x00220802 ;TIMING_CFG_0 WM32 0xe0002108 0x38357322 ;TIMING_CFG_1 WM32 0xe000210C 0x2f9048c8 ;TIMING_CFG_2 WM32 0xe0002100 0x00000000 ;TIMING_CFG_3 WM32 0xe0002110 0x43000000 ;DDR_CFG WM32 0xe0002114 0x00401000 ;DDR_CFG_2 WM32 0xe0002118 0x47d00432 ;DDR_MODE WM32 0xe000211C 0x8000c000 ;DDR_MODE_2 WM32 0xe0002124 0x03cf0080 ;DDR_INTERVAL DELAY 100 WM32 0xe0002110 0xc3000000 ;DDR_CFG ; [TARGET] CPUTYPE 8360 ;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 0xB4600000 0x04040006 ;override reset configuration words BOOTADDR 0xfff00100 ;boot address used for start-up break ;RCW 0xB0600000 0x04040006 ;override reset configuration words ;BOOTADDR 0x00000100 ;boot address used for start-up break BREAKMODE HARD ;SOFT or HARD, HARD uses PPC hardware breakpoint STEPMODE HWBP ;TRACE or HWBP, HWBP uses a hardware breakpoint [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 8360> [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 WORKSPACE 0xe0110000 ;workspace in QUICC MURAM FILE E:\temp\dump512k.bin FORMAT BIN 0xfe100000 ERASE 0xfe100000 0x20000 4 ; erase 4 sectors [REGS] FILE $reg8360e.def