;EP50120M config script ;---------------------------------- ;based on the EP8248E BDI2000 script ; ; [INIT] ; ;************************************************************* ; program the SYPCR - disable the watchdog timer ;************************************************************* WM32 0x10004 0xFFFF0681 ; ;************************************************************* ; program the bcr - Bus cfg reg ;************************************************************* WM32 0x10024 0x0080A010 ; ;************************************************************* ; program the SIUMCR - ;************************************************************* WM32 0x10000 0x01210200 ; ;************************************************************* ; program the SCCR - disable PCI 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 - FLASH BR0 & OR0 (64 Mbyte) ;************************************************************* ;WM32 0xf0010100 0xFC001801 ;WM32 0xf0010104 0xFC0008B2 ; ;************************************************************* ; initialize - PSDRAM BR1 & OR1 (128 Mbyte) ;************************************************************* WM32 0xf0010108 0x00001841 WM32 0xf001010c 0xF8002B00 ; ;************************************************************* ; initialize - BCSR BR2 & OR2 ;************************************************************* WM32 0xf0010110 0xF4000801 WM32 0xf0010114 0xFFFC0864 ; ;************************************************************* ; initialize - NVRAM BR3 & OR3 ;************************************************************* ;WM32 0xf0010118 0xF2001001 ;WM32 0xf001011c 0xFFF00864 ; ;************************************************************* ; initialize - ZL50120 BR4 & OR4 ;************************************************************* ;WM32 0xf0010120 0x70001801 ;WM32 0xf0010124 0xFF0000F0 ; ;************************************************************* ; initialize - PM4354 BR5 & OR5 ;************************************************************* ;WM32 0xf0010120 0x60000801 ;WM32 0xf0010124 0xFFFF8890 ; ;************************************************************* ; program the MPTPR - ;************************************************************* WM16 0xf0010184 0x1300 ; ;************************************************************* ; SDRAM Initialization ;************************************************************* wait 100us before accessing ; ;************************************************************* ; initialize - PSDRAM mode reg (PSDMR) ; ;************************************************************* WM32 0xf0010190 0xC44F2522 ; ;************************************************************* ; program PSRT - PSDRAM refresh timer ; ; 0x4B ; ;************************************************************* WM8 0xf001019C 0x4B ; ;************************************************************* ; SDRAM Initialization ;************************************************************* ;wait 100us before accessing ; ;Precharge all banks SMMR[OP]=101 WM8 0xf0010190 0xec WM8 0x00000110 0xff ; ;Issue 8 CBR_Refresh commands SMMR[OP]=001 WM8 0xf0010190 0xcc WM8 0xf0010190 0xcc WM8 0xf0010190 0xcc WM8 0xf0010190 0xcc WM8 0xf0010190 0xcc WM8 0xf0010190 0xcc WM8 0xf0010190 0xcc WM8 0xf0010190 0xcc WM8 0x00000110 0xff ; ;Issue Mode set command SMMR[OP]=011 WM8 0xf0010190 0xdc WM8 0x00000110 0xff ; ;set PSDMR for normal operation WM8 0xf0010190 0xc4 ; ;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 HARD ;SOFT or HARD, HARD uses PPC hardware breakpoints VECTOR CATCH ;catch unhandled exceptions DCACHE NOFLUSH ;data cache flushing (FLUSH | NOFLUSH) ; [HOST] IP 10.0.0.70 FILE pcl82xxrom.ep FORMAT SREC LOAD MANUAL ;load code MANUAL or AUTO after reset PROMPT ep50120m> ; [FLASH] CHIPTYPE MIRRORX16 CHIPSIZE 0x01000000 ;The size of one flash chip in bytes, 8 MB BUSWIDTH 32 ;The width of the flash memory bus in bits (8 | 16 | 32) WORKSPACE 0x00000000 ;workspace in target RAM for fast download ; FILE u-boot.bin FORMAT BIN 0xFFF00000 ERASE 0xFFF00000 ;erase sector 0 ; [REGS] DMM1 0xF0000000 FILE defs/reg8260.def