1 /**************************************************************************** 2 **+-----------------------------------------------------------------------+** 3 **| |** 4 **| Copyright(c) 1998 - 2008 Texas Instruments. All rights reserved. |** 5 **| All rights reserved. |** 6 **| |** 7 **| Redistribution and use in source and binary forms, with or without |** 8 **| modification, are permitted provided that the following conditions |** 9 **| are met: |** 10 **| |** 11 **| * Redistributions of source code must retain the above copyright |** 12 **| notice, this list of conditions and the following disclaimer. |** 13 **| * Redistributions in binary form must reproduce the above copyright |** 14 **| notice, this list of conditions and the following disclaimer in |** 15 **| the documentation and/or other materials provided with the |** 16 **| distribution. |** 17 **| * Neither the name Texas Instruments nor the names of its |** 18 **| contributors may be used to endorse or promote products derived |** 19 **| from this software without specific prior written permission. |** 20 **| |** 21 **| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |** 22 **| "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |** 23 **| LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |** 24 **| A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |** 25 **| OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |** 26 **| SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |** 27 **| LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |** 28 **| DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |** 29 **| THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |** 30 **| (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |** 31 **| OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |** 32 **| |** 33 **+-----------------------------------------------------------------------+** 34 ****************************************************************************/ 35 36 /**************************************************************************** 37 * 38 * MODULE: ShmFwCtrl.h 39 * PURPOSE: Firmware control object 40 * 41 ****************************************************************************/ 42 43 #ifndef _SHM_FW_CTRL_H 44 #define _SHM_FW_CTRL_H 45 46 #define REF_FREQ_19_2 0 47 #define REF_FREQ_26_0 1 48 #define REF_FREQ_38_4 2 49 #define REF_FREQ_40_0 3 50 #define REF_FREQ_33_6 4 51 #define REF_FREQ_NUM 5 52 53 #define LUT_PARAM_INTEGER_DIVIDER 0 54 #define LUT_PARAM_FRACTIONAL_DIVIDER 1 55 #define LUT_PARAM_ATTN_BB 2 56 #define LUT_PARAM_ALPHA_BB 3 57 #define LUT_PARAM_STOP_TIME_BB 4 58 #define LUT_PARAM_BB_PLL_LOOP_FILTER 5 59 #define LUT_PARAM_NUM 6 60 61 #define ACX_EEPROMLESS_IND_REG (SCR_PAD4) 62 #define USE_EEPROM 0 63 #define SOFT_RESET_MAX_TIME 1000000 64 #define SOFT_RESET_STALL_TIME 1000 65 #define NVS_DATA_BUNDARY_ALIGNMENT 4 66 67 #define SHMFWCTRL_XTAL_USED 0x3 68 #define SHMFWCTRL_XTAL_CLK_REQ_TIME 0x3E 69 70 #define SHMFWCTRL_SCRPAD6_REF_FREQ_MASK 0x000000FF 71 #define SHMFWCTRL_SCRPAD6_CLK_TYPE 0x0000FF00 72 #define SHMFWCTRL_PLL_CAL_TIME 0x5810 73 #define SHMFWCTRL_PLL_CAL_TIME_VAL 0x9 74 #define SHMFWCTRL_CLK_REQ_TIME 0x5814 75 #define SHMFWCTRL_CLK_BUF_TIME 0x5818 76 #define SHMFWCTRL_CLK_BUF_TIME_VAL 0x6 77 #define SHMFWCTRL_PLL_STABLE_TIME 0x5820 78 #define SHMFWCTRL_PLL_STABLE_TIME_VAL 0x0 79 #define SHMFWCTRL_ELP_CFG_MODE 0x5804 80 #define SHMFWCTRL_ELP_CFG_MODE_CLK_DETECT 0x00004000 81 #define SHMFWCTRL_RF_AFE_REG_3 0x58CC 82 #define SHMFWCTRL_RF_AFE_REG_3_VAL 0x4B5 83 #define SHMFWCTRL_RF_AFE_REG_5 0x58D4 84 #define SHMFWCTRL_RF_AFE_REG_5_VAL 0x50 85 #define SHMFWCTRL_RF_AFE_CTRL_REG_2 0x5948 86 #define SHMFWCTRL_RF_AFE_CTRL_REG_2_VAL 0x11C001 87 #define SHMFWCTRL_RF_AFE_REG_13 0x58F4 88 #define SHMFWCTRL_RF_AFE_REG_13_VAL 0x1E 89 90 #define SHMFWCTRL_PLL_BB_REG_0 0x5840 91 #define SHMFWCTRL_PLL_BB_REG_0_VAL 0x00017000 92 93 #define SHMFWCTRL_PLL_BB_REG_1 0x5844 94 95 #define SHMFWCTRL_PLL_BB_REG_2 0x5848 96 #define SHMFWCTRL_PLL_BB_REG_2_VAL 0x3039 97 98 #define SHMFWCTRL_PLL_BB_REG_5 0x5854 99 #define SHMFWCTRL_PLL_BB_REG_5_VAL 0x1 100 101 #define SHMFWCTRL_PLL_BB_REG_6 0x5858 102 #define SHMFWCTRL_PLL_BB_REG_6_VAL 0x000A0000 103 104 #define SHMFWCTRL_RF_AFE_REG_14 0x58F8 105 #define SHMFWCTRL_RF_AFE_REG_14_VAL 0x00000030 106 107 #define SHMFWCTRL_RF_AFE_REG_12 0x58F0 108 #define SHMFWCTRL_RF_AFE_REG_12_VAL 0x29 109 110 #define SHMFWCTRL_ELP_CMD 0x5808 111 #define SHMFWCTRL_ELP_CMD_VAL 0x1 112 113 #define SHMFWCTRL_XTAL_CLK_REQ_TIME_SHORT 0x3E 114 #define SHMFWCTRL_XTAL_CLK_REQ_TIME_LONG 0xA4 115 116 /************************************************************************ 117 * external Functions 118 ************************************************************************/ 119 120 121 #endif /* _SHM_FW_CTRL_H */ 122