|
发表于 2023-2-9 19:46:51
1205 浏览 0 回复
T618 Android11 关闭SIM卡热插拔
问题:
项目中,SIM卡不识别? XY001开发板SIM卡功能OK!
原因:
XY001 开发默认是支持SIM卡热插拔功能,在项目中如何关闭SIM卡热插拔功能?
解决方法:
1、关掉SIM det检测脚
- +++ b/sprd/bsp/bootloader/u-boot15/board/spreadtrum/ums512_1h10/pinmap.c
- @@ -192,8 +192,8 @@ static pinmap_t pinmap[]={
- {REG_MISC_PIN_RFCTL10, BITS_PIN_DS(1)|BIT_PIN_NULL|BIT_PIN_NUL|BIT_PIN_SLP_ALL_CP|BIT_PIN_SLP_NUL|BIT_PIN_SLP_OE},//RFCTL_10
- {REG_PIN_RFCTL11, BITS_PIN_AF(0)},
- {REG_MISC_PIN_RFCTL11, BITS_PIN_DS(1)|BIT_PIN_NULL|BIT_PIN_NUL|BIT_PIN_SLP_ALL_CP|BIT_PIN_SLP_NUL|BIT_PIN_SLP_OE},//RFCTL_11
- -{REG_PIN_GPIO31, BITS_PIN_AF(1)},
- -{REG_MISC_PIN_GPIO31, BITS_PIN_DS(1)|BIT_PIN_NULL|BIT_PIN_WPU|BIT_PIN_SLP_NONE|BIT_PIN_SLP_WPU|BIT_PIN_SLP_IE},//SIM0_DET(GPIO31)
- +{REG_PIN_GPIO31, BITS_PIN_AF(3)},
- +{REG_MISC_PIN_GPIO31, BITS_PIN_DS(1)|BIT_PIN_NULL|BIT_PIN_WPD|BIT_PIN_SLP_NONE|BIT_PIN_SLP_WPD|BIT_PIN_SLP_Z},//SIM0_DET(GPIO31)
- {REG_PIN_GPIO32, BITS_PIN_AF(3)},
- {REG_MISC_PIN_GPIO32, BITS_PIN_DS(1)|BIT_PIN_NULL|BIT_PIN_WPD|BIT_PIN_SLP_AP|BIT_PIN_SLP_WPD|BIT_PIN_SLP_IE},//WB_TX_RQ(GPIO32)
- {REG_PIN_GPIO33, BITS_PIN_AF(3)},
- @@ -202,8 +202,8 @@ static pinmap_t pinmap[]={
- {REG_MISC_PIN_RFCTL16, BITS_PIN_DS(1)|BIT_PIN_NULL|BIT_PIN_WPU|BIT_PIN_SLP_AP|BIT_PIN_SLP_WPU|BIT_PIN_SLP_OE},//COEXIST_LTE_GPS(GPIO7)
- {REG_PIN_RFCTL17, BITS_PIN_AF(3)},
- {REG_MISC_PIN_RFCTL17, BITS_PIN_DS(1)|BIT_PIN_NULL|BIT_PIN_NUL|BIT_PIN_SLP_AP|BIT_PIN_SLP_NUL|BIT_PIN_SLP_OE},//MIPI_SWITCH_SEL[RFCTL_16]--modified 20190430
- -{REG_PIN_GPIO9, BITS_PIN_AF(1)},
- -{REG_MISC_PIN_GPIO9, BITS_PIN_DS(1)|BIT_PIN_NULL|BIT_PIN_WPU|BIT_PIN_SLP_NONE|BIT_PIN_SLP_WPU|BIT_PIN_SLP_IE},//SIM1_DET(GPIO9)
- +{REG_PIN_GPIO9, BITS_PIN_AF(3)},
- +{REG_MISC_PIN_GPIO9, BITS_PIN_DS(1)|BIT_PIN_NULL|BIT_PIN_WPD|BIT_PIN_SLP_NONE|BIT_PIN_SLP_WPD|BIT_PIN_SLP_Z},//SIM1_DET(GPIO9)
- {REG_PIN_RFCTL19, BITS_PIN_AF(1)},
- {REG_MISC_PIN_RFCTL19, BITS_PIN_DS(1)|BIT_PIN_NULL|BIT_PIN_NUL|BIT_PIN_SLP_AP|BIT_PIN_SLP_NUL|BIT_PIN_SLP_OE},//WB_WCI_2_RXD
复制代码 2、修改modem bin
参考SIM卡热插拔检测的标志位
- +++ b/sprd/vendor/sprd/release/unisoc_bin/4g_modem_20a/ums512/sharkl5pro_pubcp_builddir/sharkl5pro_pubcp_nvitem/CustNV/SIM_HOT_PLUG_CFG.xml
- @@ -1,3 +1,3 @@
- <MODULE version="2.0" name="ProductionParam" description="">
- - <ITEM name="sim_hot_plug_cfg" id="2724" type="uint32" varname="sim_hot_plug_cfg" value="0x303" desc="config SIM hot plug related parameter"/>
- + <ITEM name="sim_hot_plug_cfg" id="2724" type="uint32" varname="sim_hot_plug_cfg" value="0x300" desc="config SIM hot plug related parameter"/>^M
复制代码
modem bin的替换路径如下:
- sprd\vendor\sprd\release\unisoc_bin\4g_modem_20a\ums512
复制代码
参考文献:
编辑工具:
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|
手机微信同号:13682654092
|
|
|
|
|
登录或注册
|