comparison gsm-fw/L1/include/l1_const.h @ 923:10b4bed10192

gsm-fw/L1: fix for the DSP patch corruption bug The L1 code we got from the LoCosto fw contains a feature for DSP CPU load measurement. This feature is a LoCosto-ism, i.e., not applicable to earlier DBB chips (Calypso) with their respective earlier DSP ROMs. Most of the code dealing with that feature is conditionalized as #if (DSP >= 38), but one spot was missed, and the MCU code was writing into an API word dealing with this feature. In TCS211 this DSP API word happens to be used by the DSP code patch, hence that write was corrupting the patched DSP code.
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Mon, 19 Oct 2015 17:13:56 +0000
parents bc3656cfe0d8
children
comparison
equal deleted inserted replaced
922:fb3f04a62f71 923:10b4bed10192
1695 #if (DSP_DEBUG_TRACE_ENABLE == 1) 1695 #if (DSP_DEBUG_TRACE_ENABLE == 1)
1696 #define DB2_R_PAGE_0 0xFFD00184L 1696 #define DB2_R_PAGE_0 0xFFD00184L
1697 #define DB2_R_PAGE_1 0xFFD00188L 1697 #define DB2_R_PAGE_1 0xFFD00188L
1698 #endif 1698 #endif
1699 1699
1700 /* DSP CPU load measurement */ 1700 #if (DSP >= 38)
1701 #define DSP_CPU_LOAD_MCU_API_BASE_ADDRESS 0xFFD01DE0L 1701 /* DSP CPU load measurement */
1702 #define DSP_CPU_LOAD_DB_W_PAGE_0 0xFFD01DE0L // DB page 0 write : 4 words long 1702 #define DSP_CPU_LOAD_MCU_API_BASE_ADDRESS 0xFFD01DE0L
1703 #define DSP_CPU_LOAD_DB_W_PAGE_1 0xFFD01DE8L // DB page 1 write : 4 words long 1703 #define DSP_CPU_LOAD_DB_W_PAGE_0 0xFFD01DE0L // DB page 0 write : 4 words long
1704 #define DSP_CPU_LOAD_MCU_W_CTRL 0xFFD01DF0L // DSP CPU load feature control 1704 #define DSP_CPU_LOAD_DB_W_PAGE_1 0xFFD01DE8L // DB page 1 write : 4 words long
1705 #define DSP_CPU_LOAD_MCU_W_TDMA_FN 0xFFD01DF2L // MCU TDMA frame number 1705 #define DSP_CPU_LOAD_MCU_W_CTRL 0xFFD01DF0L // DSP CPU load feature control
1706 #define DSP_CPU_LOAD_MCU_W_TDMA_FN 0xFFD01DF2L // MCU TDMA frame number
1707 #endif
1706 1708
1707 #else 1709 #else
1708 #define MCU_API_BASE_ADDRESS 0xFFD00000L 1710 #define MCU_API_BASE_ADDRESS 0xFFD00000L
1709 #define DSP_API_BASE_ADDRESS 0x800 1711 #define DSP_API_BASE_ADDRESS 0x800
1710 #define DB_W_PAGE_0 0xFFD00000L // DB page 0 write : 20 words long 1712 #define DB_W_PAGE_0 0xFFD00000L // DB page 0 write : 20 words long