#!<cw>

#setMMRBaseAddr 0xFF400000
change	MBAR	0xFF400000

##############################################
# System Configuration - Local Access Windows 
##############################################

# Local Bus Local Access Windows
#################################
# WINDOW 0 - FLASH

# LBLAWBAR0  - begining at 0xff000000 
change	LBLAWBAR0  0xfe000000 

# LBLAWAR0   - enable, size = 32MB 
change	LBLAWAR0   0x80000018 

##############################################
# Local Bus Interface (LBIU) Configuration
##############################################

# CS0 - NOR FLASH 

# BR0 base address at 0xfe000000, port size 16 bit, GPCM, valid
change	BR0 0xfe001001 

# OR0 32MB flash window size, 15 w.s., timing relaxed
change	OR0 0xfe006ff7 

# LBCR - local bus enable
change	LBCR 0x00000000

# LCRR
# bit 14 - 15 = 0b11 - EADC - 3 external address delay cycles 
# bit 28 - 31 = 0x0010  - CLKDIV - system clock:memory bus clock = 2
change	LCRR 0x00030002

# MRTPR - refresh timer prescaler
change	MRTPR 0x20000000 

# ACR - Enable Core
change	ACR 0x00000000

change SP 0xf

	