硬件基带sim1 sim2异位时,modem修改

在modem的代码\modem\custom\driver\drv\misc_drv_Default_BB\MT6735路径下custom_drv_init.c中

//#include "kal_release.h"
#include "kal_public_api.h" 

extern void Alter_init(void);
extern void PWM_initialize(void);
extern void EINT_Setting_SW_Init(void);

//add there
extern  kal_bool sim_switchPhysicalSlotMapping(kal_bool inverse);

#if defined(__OFN_SUPPORT__)
extern void OFN_ChipInit(void);
#endif

#if defined(__NFC_SUPPORT__)
extern int phDal4Nfc_uart_reset(long level);
#endif

#if defined(__BTMODULE_MT6236__)||defined(__BTMODULE_MT6276__)
void Brt_MT6236_76_ARM7_Workaround_Stage_1_Bootloader_Step_0_PowerOn_Once_Only_Fake_BtOff(void);
#endif


void custom_drv_init(void)
{
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
// This Workaround should be placed at 1st line of custom_drv_init.
//add there
sim_switchPhysicalSlotMapping(KAL_TRUE);
#if defined(__BTMODULE_MT6236__)||defined(__BTMODULE_MT6276__)
    Brt_MT6236_76_ARM7_Workaround_Stage_1_Bootloader_Step_0_PowerOn_Once_Only_Fake_BtOff();
#endif
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
#if defined(MT6752)
#if defined(__MD1__)
    EINT_Setting_SW_Init(); /*initial dct setting sw part, hw part do in bootloader init*/
#endif
#else
    EINT_Setting_SW_Init(); /*initial dct setting sw part, hw part do in bootloader init*/
#endif
    //spi_ini(); /* For LCD module */
    //LCD_FunConfig();
    Alter_init();
#ifndef __L1_STANDALONE__
   PWM_initialize();
#endif
#if defined(__OFN_SUPPORT__)
    OFN_ChipInit();
#endif
}



void custom_drv_deinit(void)
{
#ifdef __NFC_SUPPORT__
  //Do NFC hardware reset for NFC chip enter active mode
  phDal4Nfc_uart_reset(1);
  phDal4Nfc_uart_reset(0);
  phDal4Nfc_uart_reset(1);
#endif
}

你可能感兴趣的:(硬件基带sim1 sim2异位时,modem修改)