// Memory Map:
// ----------------------------------------------------------------------
range 0x00000000 0x0007FFFF 4 Read // 512 Kbytes Internal Flash
reserved 0x00080000 0x1FFFFFFF
range 0x20000000 0x2000FFFF 4 ReadWrite // 64 Kbytes Internal SRAM
reserved 0x20010000 0x2FFFFFFF
reserved 0x30000000 0x3FFFFFFF // External SRAM (not fitted)
// $IPSBAR_BASE $IPSBAR_BASE + 0x1FFFFF // Memory Mapped Registers
reserved $IPSBAR_BASE + 0x200000 0xEFFFFFFF
range 0xF0000000 0xF0FFFFFF 4 ReadWrite // 16 Mbyte SDRAM
reserved 0xF1000000 0xFFDFFFFF
range 0xFFE00000 0xFFEFFFFF 4 read // debugger/monitor firmware
range 0xFFF00000 0xFFFFFFFF 2 ReadWrite //
/*Any clues?
* ChipSelect 0 - External Flash
*/
MCF_CS0_CSAR = MCF_CS_CSAR_BA(0xffe00000);
MCF_CS0_CSCR = (0
| MCF_CS_CSCR_WS(6)
| MCF_CS_CSCR_AA
| MCF_CS_CSCR_PS_16);
MCF_CS0_CSMR = MCF_CS_CSMR_BAM_2M | MCF_CS_CSMR_V;