PageRenderTime 49ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/drivers/net/wireless/tiwlan1251/common/src/BusAccess/Shm_Common/shmFwCtrl.h

http://github.com/CyanogenMod/cm-kernel
C Header | 121 lines | 59 code | 19 blank | 43 comment | 0 complexity | b4dd0f20f92b0f07ef546ad8e3b2d22b MD5 | raw file
Possible License(s): AGPL-1.0, GPL-2.0, LGPL-2.0
  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. * MODULE: ShmFwCtrl.h
  38. * PURPOSE: Firmware control object
  39. *
  40. ****************************************************************************/
  41. #ifndef _SHM_FW_CTRL_H
  42. #define _SHM_FW_CTRL_H
  43. #define REF_FREQ_19_2 0
  44. #define REF_FREQ_26_0 1
  45. #define REF_FREQ_38_4 2
  46. #define REF_FREQ_40_0 3
  47. #define REF_FREQ_33_6 4
  48. #define REF_FREQ_NUM 5
  49. #define LUT_PARAM_INTEGER_DIVIDER 0
  50. #define LUT_PARAM_FRACTIONAL_DIVIDER 1
  51. #define LUT_PARAM_ATTN_BB 2
  52. #define LUT_PARAM_ALPHA_BB 3
  53. #define LUT_PARAM_STOP_TIME_BB 4
  54. #define LUT_PARAM_BB_PLL_LOOP_FILTER 5
  55. #define LUT_PARAM_NUM 6
  56. #define ACX_EEPROMLESS_IND_REG (SCR_PAD4)
  57. #define USE_EEPROM 0
  58. #define SOFT_RESET_MAX_TIME 1000000
  59. #define SOFT_RESET_STALL_TIME 1000
  60. #define NVS_DATA_BUNDARY_ALIGNMENT 4
  61. #define SHMFWCTRL_XTAL_USED 0x3
  62. #define SHMFWCTRL_XTAL_CLK_REQ_TIME 0x3E
  63. #define SHMFWCTRL_SCRPAD6_REF_FREQ_MASK 0x000000FF
  64. #define SHMFWCTRL_SCRPAD6_CLK_TYPE 0x0000FF00
  65. #define SHMFWCTRL_PLL_CAL_TIME 0x5810
  66. #define SHMFWCTRL_PLL_CAL_TIME_VAL 0x9
  67. #define SHMFWCTRL_CLK_REQ_TIME 0x5814
  68. #define SHMFWCTRL_CLK_BUF_TIME 0x5818
  69. #define SHMFWCTRL_CLK_BUF_TIME_VAL 0x6
  70. #define SHMFWCTRL_PLL_STABLE_TIME 0x5820
  71. #define SHMFWCTRL_PLL_STABLE_TIME_VAL 0x0
  72. #define SHMFWCTRL_ELP_CFG_MODE 0x5804
  73. #define SHMFWCTRL_ELP_CFG_MODE_CLK_DETECT 0x00004000
  74. #define SHMFWCTRL_RF_AFE_REG_3 0x58CC
  75. #define SHMFWCTRL_RF_AFE_REG_3_VAL 0x4B5
  76. #define SHMFWCTRL_RF_AFE_REG_5 0x58D4
  77. #define SHMFWCTRL_RF_AFE_REG_5_VAL 0x50
  78. #define SHMFWCTRL_RF_AFE_CTRL_REG_2 0x5948
  79. #define SHMFWCTRL_RF_AFE_CTRL_REG_2_VAL 0x11C001
  80. #define SHMFWCTRL_RF_AFE_REG_13 0x58F4
  81. #define SHMFWCTRL_RF_AFE_REG_13_VAL 0x1E
  82. #define SHMFWCTRL_PLL_BB_REG_0 0x5840
  83. #define SHMFWCTRL_PLL_BB_REG_0_VAL 0x00017000
  84. #define SHMFWCTRL_PLL_BB_REG_1 0x5844
  85. #define SHMFWCTRL_PLL_BB_REG_2 0x5848
  86. #define SHMFWCTRL_PLL_BB_REG_2_VAL 0x3039
  87. #define SHMFWCTRL_PLL_BB_REG_5 0x5854
  88. #define SHMFWCTRL_PLL_BB_REG_5_VAL 0x1
  89. #define SHMFWCTRL_PLL_BB_REG_6 0x5858
  90. #define SHMFWCTRL_PLL_BB_REG_6_VAL 0x000A0000
  91. #define SHMFWCTRL_RF_AFE_REG_14 0x58F8
  92. #define SHMFWCTRL_RF_AFE_REG_14_VAL 0x00000030
  93. #define SHMFWCTRL_RF_AFE_REG_12 0x58F0
  94. #define SHMFWCTRL_RF_AFE_REG_12_VAL 0x29
  95. #define SHMFWCTRL_ELP_CMD 0x5808
  96. #define SHMFWCTRL_ELP_CMD_VAL 0x1
  97. #define SHMFWCTRL_XTAL_CLK_REQ_TIME_SHORT 0x3E
  98. #define SHMFWCTRL_XTAL_CLK_REQ_TIME_LONG 0xA4
  99. /************************************************************************
  100. * external Functions
  101. ************************************************************************/
  102. #endif /* _SHM_FW_CTRL_H */