; STR9 initialization (with CSX=0)

; Reset the CPU (and wait for CPU to stop at 0)
reset /halt

; Disable PLL (needed for good flash access)
; CPU reset does not disable the PLL and flash needs 2 wait states to work with 96MHz CPU.
; It is easier to disable the PLL
SD 0x5C002000 = 0X00030002
SD 0x5C002004 = 0X00001819

; Settings below map Bank0 (512K) at 0 and Bank1 (32K) at 0x80000

SD 0x54000018 = 0X00000018	;Control Reg - enable both banks, default is 0x08 (only boot bank enabled)

SD 0x54000000 = 0X00000004	;Boot bank (Bank0) memory size is 512KB (32K<<4)
SD 0x5400000C = 0X00000000	;Boot bank (Bank0) base address (word address) , default to 00 

SD 0x54000004 = 0X00000003	;Second bank (Bank1) memory size is 32KB (8K<<2) (need to set to 64KB to write to Config reg)
SD 0x54000010 = 0X00020000	;Second bank (Bank1) base address is 0x80000, default to 00.

