/************************************************************/ /* Spidcom Technologies FILE NAME : platform_remap.S DESCRIPTION : CRISTINA remap code HISTORY : -------------------------------------------------------------- DATE | AUTHOR | Version | Description -------------------------------------------------------------- 27/01/04 | Petillon | 1.0 | Creation */ /************************************************************/ #include "tina_g.h" .global __platform_remap /* */ /* Code executing in SDRAM */ /* */ .section ".text", "ax" __platform_remap: mov r0, #SRAM_CFG_BASE mov r1, #0x0F000000 add r1, r1, #0x02 mov r2, #0x04 /* increment */ add r0, r0, r2 str r1, [r0], +r2 /* CS1 */ str r1, [r0], +r2 /* CS2 */ str r1, [r0], +r2 /* CS3 */ str r1, [r0], +r2 /* CS4 */ str r1, [r0], +r2 /* CS5 */ str r1, [r0], +r2 /* CS6 */ mov r0, #SRAM_CFG_BASE add r0, r0, #0x1C /* CS7 */ ldr r1, [r0] mov r1,#0x0E000000 /* 0x0E004B10 : mapping in 0x0E000000 */ add r1,r1,#0x0000FF00 #ifdef FLASH_ERROR add r1,r1,#0x000000FC /* 8BIT flash access */ #else add r1,r1,#0x000000FD /* 16BIT flash access */ #endif str r1, [r0] mov r0, #SRAM_CFG_BASE /* CS0 */ mov r1, #0x00000002 /* Remap at 0x0 */ str r1, [r0] bx lr