rem ***********************************************************
rem       ARM Debug Initial File
rem       Copyright 1999-2004, Jedi Systems Inc.
rem         
rem       init file  for Motorola MX1ads
rem ***********************************************************
!
rem Initialize I/O Pad Driving Strength
LONG 0x21B80C 0x000003AB

rem Set FCLK to 192MHz, BCLK to 48MHz
LONG 0x21B000  0x0F008403

rem start config CSD0
rem Set Precharge Command
long 0x221000 0x92120200

rem  Precharge All Commad
rem we need to read memory address 0x08200000
Memory 0x08200000 Length 1

rem set AutoRefresh Command
long 0x221000 0xA2120200

rem Issue AutoRefresh Command
rem we need to read memory address 0x08000000 8 times
Memory 0x08000000 Length 1
Memory 0x08000000 Length 1
Memory 0x08000000 Length 1
Memory 0x08000000 Length 1
Memory 0x08000000 Length 1
Memory 0x08000000 Length 1
Memory 0x08000000 Length 1
Memory 0x08000000 Length 1

rem Set Mode Register
long 0x221000 0xB2120200

rem Issue Mode Register Command
rem 0x08111800 is mode register value
Memory 0x08111800 Length 1

rem Set Normal Mode
long 0x221000 0x8212c267
rem long 0x221000 0x82124200

rem  start config CSD1
rem enable CSD1 for syncflash
long 0x221004 0x80000000

rem set SyncFlash Load Mode Register
long 0x221004 0xB1020300

rem Issue Mode Register Value
Memory 0x0C08CC00 Length 1		
		
rem Set Precharge Command
long 0x221004 0x91020300		
		
rem Issue Precharge all Command
Memory 0x0C100000 Length 1	
		
rem set to normal Mode
long 0x221004 0x81020300			


rem prepare the command line for kernel at address 0x083ff000
rem root=/dev/mdsk mem=47M'\0'
rem the system has 48M memory, but we've to reserve some above memory
rem for our debugger
long 0x083ff000 0x746f6f72
long 0x083ff004 0x65642f3d
long 0x083ff008 0x646d2f76
long 0x083ff00C 0x6d206b73
long 0x083ff010 0x343d6d65
long 0x083ff014 0x00004d37

rem r1 points to the start address of command line, 
rem will used by head-armv.S
register r1 0x083ff000

long 0x21b000 0xaf008403
long 0x21b004 0x4632410

long 0x21b000 0xaf208403
long 0x21b000 0xaf200403

long 0x21b020 0x000b0055 

rem uart related 
long 0x206080 0x5
long 0x206084 0x4027
long 0x20608C 0x1
long 0x206090 0xA81
long 0x2060A4 0xf
long 0x2060A8 0x8A
long 0x2060AC 0x8 
!
