;bdiGDB configuration file for MPC8569E MDS ;------------------------------------------ ; ; The values used to configure the memory controller ; are the ones U-boot uses to setup my system. ; Your system may need different ones !!! ; ; This configuration is not usable for U-boot debugging. ; Use it to debug example code loaded into SDRAM. ; ; [INIT] ; ;================= setup TLB entries =================== ; Move the L2SRAM to the initial MMU page WM32 0xFF720E44 0x0000001C ;L2ERRDIS: disable parity error WM32 0xFF720000 0x60010000 ;L2CTL WM32 0xFF720100 0xFFF80000 ;L2SRBAR0: map to 0x0_FFF80000 WM32 0xFF720104 0x00000000 ;L2SRBAREA0 WM32 0xFF720000 0xA0010000 ;L2CTL ; ; load and execute some boot code WM32 0xfffffffc 0x48000000 ;loop EXEC 0xfffffffc ; ; load TLB entries, helper code @ 0xfffff000 WM32 0xfffff000 0x7c0007a4 ;tlbwe WM32 0xfffff004 0x7c0004ac ;msync WM32 0xfffff008 0x48000000 ;loop WSPR 628 0x00000000 ;MAS4: WSPR 630 0x00000000 ;MAS7: ; ; 64 MB TLB1 #0 0xfc000000 - 0xffffffff WSPR 624 0x10000000 ;MAS0: WSPR 625 0x80000800 ;MAS1: WSPR 626 0xfc00000a ;MAS2: WSPR 627 0xfc000015 ;MAS3: EXEC 0xfffff000 ; ; 1 GB TLB1 #1 0x80000000 - 0xbfffffff WSPR 624 0x10010000 ;MAS0: WSPR 625 0x80000a00 ;MAS1: WSPR 626 0x8000000a ;MAS2: WSPR 627 0x80000015 ;MAS3: EXEC 0xfffff000 ; ; 64 MB TLB1 #2 0xe0000000 - 0xe3ffffff WSPR 624 0x10020000 ;MAS0: WSPR 625 0x80000800 ;MAS1: WSPR 626 0xe000000a ;MAS2: WSPR 627 0xe0000015 ;MAS3: EXEC 0xfffff000 ; ; 64 MB TLB1 #3 0xf0000000 - 0xf3ffffff WSPR 624 0x10030000 ;MAS0: WSPR 625 0x80000800 ;MAS1: WSPR 626 0xf0000000 ;MAS2: WSPR 627 0xf0000015 ;MAS3: EXEC 0xfffff000 ; ; 64 MB TLB1 #4 0xf8000000 - 0xfbffffff WSPR 624 0x10040000 ;MAS0: WSPR 625 0x80000800 ;MAS1: WSPR 626 0xf800000a ;MAS2: WSPR 627 0xf8000015 ;MAS3: EXEC 0xfffff000 ; ; 1 GB TLB1 #5 0x00000000 - 0x3fffffff WSPR 624 0x10050000 ;MAS0: WSPR 625 0x80000a00 ;MAS1: WSPR 626 0x00000000 ;MAS2: WSPR 627 0x00000015 ;MAS3: EXEC 0xfffff000 ; ; ; Remove the L2SRAM from the initial MMU page WM32 0xFF720000 0x20010000 ;L2CTL WM32 0xFF720000 0x20000000 ;L2CTL ;================= end setup TLB entries ===================== ; ; ;================= setup memory controller =================== ; Move CCSRBAR to 0xe0000000 WM32 0xff700000 0x000e0000 ;CCSRBAR to 0xe0000000 ; ; Initialize LAWBAR's WM32 0xe0000C08 0x00000000 ;LAWBAR0 : @0x00000000 WM32 0xe0000C10 0x80f0001d ;LAWAR0 : DDR/SDRAM 1GB WM32 0xe0000C28 0x000c0000 ;LAWBAR1 : @0xc0000000 WM32 0xe0000C30 0x8040001d ;LAWAR1 : Local Bus 1GB WM32 0xe0000C48 0x00080000 ;LAWBAR2 : @0x80000000 WM32 0xe0000C50 0x8000001d ;LAWAR2 : PCI 1GB ; ; Setup chip select WM32 0xe0005004 0xfe000ff7 ;OR0 : Flash (boot bank) WM32 0xe0005000 0xfe000801 ;BR0 : 32MB at 0xfe000000 WM32 0xe000500C 0xffff89f7 ;OR1 : BCSR WM32 0xe0005008 0xf8000801 ;BR1 : 32KB at 0xf8000000 ; ; Setup DDR2 WM32 0xe0002000 0x0000003f ;CS0_BNDS WM32 0xe0002008 0x00000000 ;CS1_BNDS WM32 0xe0002010 0x00000000 ;CS2_BNDS WM32 0xe0002018 0x00000000 ;CS3_BNDS WM32 0xe0002080 0x80014202 ;CS0_CONFIG WM32 0xe0002084 0x00000000 ;CS1_CONFIG WM32 0xe0002088 0x00000000 ;CS2_CONFIG WM32 0xe000208C 0x00000000 ;CS3_CONFIG WM32 0xe00020C0 0x00000000 ;CS0_CONFIG_2 WM32 0xe00020C4 0x00000000 ;CS1_CONFIG_2 WM32 0xe00020C8 0x00000000 ;CS2_CONFIG_2 WM32 0xe00020CC 0x00000000 ;CS3_CONFIG_2 WM32 0xe0002100 0x00020000 ;TIMING_CFG_3 WM32 0xe0002104 0x00330004 ;TIMING_CFG_0 WM32 0xe0002108 0x6f6b4644 ;TIMING_CFG_1 WM32 0xe000210C 0x002888d0 ;TIMING_CFG_2 WM32 0xe0002110 0x47000000 ;DDR_CFG WM32 0xe0002114 0x04401050 ;DDR_CFG_2 WM32 0xe0002118 0x40401521 ;DDR_MODE WM32 0xe000211C 0x8000c000 ;DDR_MODE_2 WM32 0xe0002124 0x03e00000 ;DDR_INTERVAL WM32 0xe0002128 0xdeadbeef ;DDR_DATA_INIT WM32 0xe0002130 0x01000000 ;DDR_CLK_CNTL WM32 0xe0002148 0x00000000 ;DDR_INIT_ADDR WM32 0xe000214C 0x00000000 ;DDR_INIT_EXT_ADDR WM32 0xe0002160 0x00220001 ;TIMING_CFG_4 WM32 0xe0002164 0x03402400 ;TIMING_CFG_5 WM32 0xe0002170 0x89080600 ;DDR_ZQ_CNTL WM32 0xe0002174 0x0655a604 ;DDR_WRLVL_CNTL WM32 0xe000217C 0x00000000 ;DDR_SR_CNTR WM32 0xe0002180 0x00000000 ;DDR_SDRAM_RCW_1 WM32 0xe0002184 0x00000000 ;DDR_SDRAM_RCW_2 WM32 0xe0002B28 0x80040000 ;DDRCDR_1 WM32 0xe0002B2C 0x00000000 ;DDRCDR_2 DELAY 100 WM32 0xe0002110 0xc7000000 ;DDR_CFG DELAY 1000 ; ;================= end setup memory controller =============== ; ; Setup debug vector for program execution WSPR 63 0x00000000 ;IVPR : Exceptions at 0x00000000 WSPR 406 0x0000700 ;IVOR6 : Program exception WSPR 415 0x0001500 ;IVOR15 : Debug exception WM32 0x00000700 0x48000000 ;write valid instruction WM32 0x00001500 0x48000000 ;write valid instruction ; [TARGET] POWERUP 5000 ;start delay after power-up detected in ms CPUTYPE 8569 ;the CPU type JTAGCLOCK 1 ;use 16 MHz JTAG clock STARTUP HALT ;halt at boot vector BREAKMODE HARD ;SOFT or HARD, HARD uses PPC hardware breakpoint STEPMODE HWBP ;JTAG or HWBP, HWPB uses a hardware breakpoint WAKEUP 500 ;give reset time to complete [HOST] IP 151.120.25.112 PROMPT mds8569> FILE E:\temp\dump1024k.bin FORMAT BIN 0x00000000 [FLASH] [REGS] FILE $reg8569.def