| #ifndef _LTE_EFUSE_H_ |
| #define _LTE_EFUSE_H_ |
| |
| #include "kal_general_types.h" |
| #include "reg_base.h" // for "EFUSE_BASE" defined value |
| |
| |
| //[20160801 Ali] move efuse function from mrs_eas_capability.c back to el1 in 6293. |
| // used in mcu/common/modem/el1/el1c/lte_efuse.c |
| |
| /* for EFUSE reading */ |
| |
| #define HW_READ_EL1(ptr) (*(ptr)) |
| #define BitFieldGet_EL1(_src, _strtBit, _maskBit) ((_src >> _strtBit) & _maskBit) |
| #define MASK_1_BIT_EL1 0x0001 |
| |
| // should add code for new chip |
| // [20150820]disable #error for ElBRUS trial build |
| //#error "please check chip version and notify RCM owner to add new efuse code" |
| |
| #ifdef LTE_CA_DEFAULT_VALUE // may be defined in mrs_eas_capability.h (to be removed) |
| #undef LTE_CA_DEFAULT_VALUE |
| #endif |
| |
| #if defined(__LTE_R11__) |
| #define LTE_CA_DEFAULT_VALUE KAL_TRUE |
| #else |
| #define LTE_CA_DEFAULT_VALUE KAL_FALSE |
| #endif |
| |
| //[20160801 Ali] move efuse function from mrs_eas_capability.c back to el1 in 6293. |
| /******************************************************************************* |
| * @brief This function check if efuse LTE_FDD_DISABLE bit is set (1), |
| * and return LTE FDD support status |
| * @note |
| * @param |
| * @return TRUE if LTE_FDD_DISABLE bit is not set (0) |
| * FALSE if LTE_FDD_DISABLE bit is set (1) |
| *******************************************************************************/ |
| kal_bool el1_is_lte_fdd_exist(void); |
| /******************************************************************************* |
| * @brief This function check if efuse LTE_TDD_DISABLE bit is set (1), |
| * and return LTE TDD support status |
| * @note |
| * @param |
| * @return TRUE if LTE_TDD_DISABLE bit is not set (0) |
| * FALSE if LTE_TDD_DISABLE bit is set (1) |
| *******************************************************************************/ |
| kal_bool el1_is_lte_tdd_exist(void); |
| /******************************************************************************* |
| * @brief This function check if efuse LTE_CA_DISABLE bit is set (1), |
| * and return LTE CA support status |
| * @note |
| * @param |
| * @return TRUE if LTE_CA_DISABLE bit is not set (0) |
| * FALSE if LTE_CA_DISABLE bit is set (1) |
| *******************************************************************************/ |
| kal_bool el1_is_lte_ca_enable(void); |
| |
| |
| |
| #endif // _LTE_EFUSE_H_ |