;EP8260 32M of psdram config script ;---------------------------------- ;written by Steven Blakeslee ;based on the OCD commander script written by Price David ; ; [INIT] ; ;************************************************************* ; program the SYPCR - disable the watchdog timer ;************************************************************* WM32 0x10004 0xffff0689 ; ;************************************************************* ; program the bcr - Bus cfg reg ;************************************************************* WM32 0x10024 0x80c08000 ; ;************************************************************* ; program the SIUMCR - ;************************************************************* WM32 0x10000 0x01240000 ; ;************************************************************* ; program the SCCR - disable low-power mode & set clock divider to 16 ;************************************************************* WM32 0x10c80 0x00000001 ; ;************************************************************* ; load IMMR register with the new base address (0x04700000) ; Warning: this assumes that the IMMR is located at 0xf0101A8 ; due to the reset configuration. If the reset config words ; in boot Flash/ROM are set for a different address, then you ; must update this script to use the new IMMR address! ;************************************************************* WM32 0x101A8 0xf0000000 ; ;************************************************************* ; initialize the memory controller registers... ;************************************************************* ; ;************************************************************* ; initialize - PSDRAM BR1 & OR1 ; ; PSDRAM OR = FE002EC0 (32 Mbyte) ; PSDRAM OR = FC002CC0 (64 Mbyte) ; PSDRAM OR = F8002B00 (128 Mbyte) ; ;************************************************************* WM32 0xf0010108 0x00000041 WM32 0xf001010c 0xfe002ec0 ; ;************************************************************* ; initialize - NVRTC_BCSR BR4 & OR4 ;************************************************************* WM32 0xf0010120 0xfa000801 WM32 0xf0010124 0xffc80854 ; ;************************************************************* ; program the MPTPR - ;************************************************************* WM16 0xf0010184 0x0A00 ; ;************************************************************* ; SDRAM Initialization ;************************************************************* ;wait 100us before accessing ; ;************************************************************* ; initialize - PSDRAM mode reg (PSDMR) ; ; C2462462 (32 Mbyte) ; C34E2462 (64 Mbyte) ; C32E2462 (128 Mbyte) ; test value c2ca2462 32meg ;************************************************************* WM32 0xf0010190 0xc2ca2462 ; ;************************************************************* ; program PSRT - PSDRAM refresh timer ; ; 0x64 (32 Mbyte) ; 0x64 (64 Mbyte) ; 0x32 (128 Mbyte) ; ;************************************************************* WM8 0xf001019C 0x64 ; ;************************************************************* ; SDRAM Initialization ;************************************************************* ;wait 100us before accessing ; ;Precharge all banks SMMR[OP]=101 WM8 0xf0010190 0xe2 WM8 0x00000110 0xff ; ;Issue 8 CBR_Refresh commands SMMR[OP]=001 WM8 0xf0010190 0xca WM8 0xf0010190 0xca WM8 0xf0010190 0xca WM8 0xf0010190 0xca WM8 0xf0010190 0xca WM8 0xf0010190 0xca WM8 0xf0010190 0xca WM8 0xf0010190 0xca WM8 0x00000110 0xff ; ;Issue Mode set command SMMR[OP]=011 WM8 0xf0010190 0xda WM8 0x00000110 0xff ; ;set PSDMR for normal operation WM8 0xf0010190 0xc2 ; ;clear MRS WREG MSR 0x00000000 ; ; [TARGET] CPUTYPE 8260 ;the CPU type (603EV,750,8240,8260) JTAGCLOCK 0 ;use 16 MHz JTAG clock WORKSPACE 0x00000000 ;workspace in target RAM for fast download BDIMODE AGENT ;the BDI working mode (LOADONLY | AGENT | GATEWAY) BREAKMODE SOFT ;SOFT or HARD, HARD uses PPC hardware breakpoints VECTOR CATCH ;catch unhandled exceptions DCACHE NOFLUSH ;data cache flushing (FLUSH | NOFLUSH) ; ; ;Not really using this ; [FLASH] CHIPTYPE AM29F ;Flash type (AM29F | AM29BX8 | AM29BX16 | I28BX8 | I28BX16) CHIPSIZE 0x200000 ;The size of one flash chip in bytes (e.g. AM29F010 = 0x20000) BUSWIDTH 8 ;The width of the flash memory bus in bits (8 | 16 | 32 | 64) ; ; [HOST] IP 10.0.0.161 FILE PCB82xx102.ep FORMAT SREC LOAD MANUAL ;load code MANUAL or AUTO after reset ; ; [REGS] DMM1 0xF0000000 FILE reg8260.def