Instructions on EINT configuration for SIM hot swap for MT6589/MT6572/M...
时间:10-02
整理:3721RD
点击:
[SIM] Instructions on EINT configuration for SIM hot swap for MT6589/MT6572/MT6582/MT6592/MT6571 platforms
[Description]
EINT software configuration for smart phone SIM hot swap for
MT6589/MT6572/MT6582/MT6592/MT6571 platforms.
[Solution]
For versions after JB2 (including JB2):
No patch is needed. For JB2 (including JB2) for MT6589/MT6572/MT6582/MT6592/MT6571
platforms, SIM card hot swap is turned on by default. According to hardware, configure
the “ALPS” AP side DCT tool (codegen.dws file).
We suggest you:
1.Configure EINT to trigger “remove SIM card” state, H or L. For example, if “remove
SIM card” state is H (high), configure to trigger H (high).
2.Use level trigger (must be set to “Debounce time”; “Debounce time” must = 100).
The “Debounce time” value will be transferred to the Modem side then
“EINT_SW_Debounce_Modify()” for SW de-bounce time setting. The unit is 10ms.
“Debounce time: 100” -> 100*10=100ms=1s.
Example:
MT6592
GPIO14 -> MD_EINT2 mode
GPIO15 -> MD_EINT3 mode
SIM1hot swap detect pin usesMD_EINT No.1
SIM2 hot swap detect pin uses MD_EINT No.2
High level -> Insert SIM card (card)
Low level -> Remove SIM card (no card)
SIM hot swap "GPIO setting":
Parameter Query EINT number Debounce time
s String (MODEM_EINT_NO) (default:10)
SIM1_HOT_PLUG_EINT
SIM2_HOT_PLUG_EINT
AP SIM1_HOT_PLUG 1 100
SIM2_HOT_PLUG 2 100
SIM hot swap "EINT setting":
Note:
ALPS SIM card hot swap FEATURE: mtk_SIM_HOT_SWAP is only for version after JB2
(including JB2) on MT6589/MT6572/MT6582/MT6592/MT6571 platforms.
- 1
alps\mediatek\config\$(customer_project)\ProjectConfig.mk
MTK_SIM_HOT_SWAP = no
MTK_RADIOOFF_power_OFF_MD = yes
modify to:
MTK_SIM_HOT_SWAP = yes
MTK_RADIOOFF_POWER_OFF_MD = no
---------------------------------------------------------------------------------------
-------------
The option MTK_RADIOOFF_POWER_OFF_MD is for specifying that when the radio is off, turn
off the modem.
When the SIM card is plugged out, turn off the corresponding radio. In case this option
is opened, the modem will be switched off. Therefore, after the SIM card is inserted,
you will not be able to properly detect the plugged-in event (due to modem is already
off). This option cannot be set together to “yes” with SIM hot swap feature
SIM2_HOT_PLUG_EINT
AP SIM1_HOT_PLUG
SIM2_HOT_PLUG
1
2
100
100
(MTK_SIM_HOT_SWAP).
---------------------------------------------------------------------------------------
-------------
- 2
The smart phone SIM hot swap uses “EINT module”. For differences between platforms,
refer to
[FAQ05831] [SIM] Platform differences in SIM hot swap EINT module.
[Description]
EINT software configuration for smart phone SIM hot swap for
MT6589/MT6572/MT6582/MT6592/MT6571 platforms.
[Solution]
For versions after JB2 (including JB2):
No patch is needed. For JB2 (including JB2) for MT6589/MT6572/MT6582/MT6592/MT6571
platforms, SIM card hot swap is turned on by default. According to hardware, configure
the “ALPS” AP side DCT tool (codegen.dws file).
We suggest you:
1.Configure EINT to trigger “remove SIM card” state, H or L. For example, if “remove
SIM card” state is H (high), configure to trigger H (high).
2.Use level trigger (must be set to “Debounce time”; “Debounce time” must = 100).
The “Debounce time” value will be transferred to the Modem side then
“EINT_SW_Debounce_Modify()” for SW de-bounce time setting. The unit is 10ms.
“Debounce time: 100” -> 100*10=100ms=1s.
Example:
MT6592
GPIO14 -> MD_EINT2 mode
GPIO15 -> MD_EINT3 mode
SIM1hot swap detect pin usesMD_EINT No.1
SIM2 hot swap detect pin uses MD_EINT No.2
High level -> Insert SIM card (card)
Low level -> Remove SIM card (no card)
SIM hot swap "GPIO setting":
Parameter Query EINT number Debounce time
s String (MODEM_EINT_NO) (default:10)
SIM1_HOT_PLUG_EINT
SIM2_HOT_PLUG_EINT
AP SIM1_HOT_PLUG 1 100
SIM2_HOT_PLUG 2 100
SIM hot swap "EINT setting":
Note:
ALPS SIM card hot swap FEATURE: mtk_SIM_HOT_SWAP is only for version after JB2
(including JB2) on MT6589/MT6572/MT6582/MT6592/MT6571 platforms.
- 1
alps\mediatek\config\$(customer_project)\ProjectConfig.mk
MTK_SIM_HOT_SWAP = no
MTK_RADIOOFF_power_OFF_MD = yes
modify to:
MTK_SIM_HOT_SWAP = yes
MTK_RADIOOFF_POWER_OFF_MD = no
---------------------------------------------------------------------------------------
-------------
The option MTK_RADIOOFF_POWER_OFF_MD is for specifying that when the radio is off, turn
off the modem.
When the SIM card is plugged out, turn off the corresponding radio. In case this option
is opened, the modem will be switched off. Therefore, after the SIM card is inserted,
you will not be able to properly detect the plugged-in event (due to modem is already
off). This option cannot be set together to “yes” with SIM hot swap feature
SIM2_HOT_PLUG_EINT
AP SIM1_HOT_PLUG
SIM2_HOT_PLUG
1
2
100
100
(MTK_SIM_HOT_SWAP).
---------------------------------------------------------------------------------------
-------------
- 2
The smart phone SIM hot swap uses “EINT module”. For differences between platforms,
refer to
[FAQ05831] [SIM] Platform differences in SIM hot swap EINT module.