INT32 mtk_wcn_consys_hw_rst (UINT32 co_clock_en) { INT32 iRet = 0; WMT_PLAT_INFO_FUNC("CONSYS-HW, hw_rst start, eirq should be disabled before this step\n"); /*1. do whole hw power off flow*/ iRet += mtk_wcn_consys_hw_reg_ctrl(0,co_clock_en); /*2. do whole hw power on flow*/ iRet += mtk_wcn_consys_hw_reg_ctrl(1,co_clock_en); WMT_PLAT_INFO_FUNC("CONSYS-HW, hw_rst finish, eirq should be enabled after this step\n"); return iRet; }
INT32 mtk_wcn_consys_hw_pwr_off (VOID) { INT32 iRet = 0; WMT_PLAT_INFO_FUNC("CONSYS-HW-PWR-OFF, start\n"); iRet += mtk_wcn_consys_hw_reg_ctrl(0,0); iRet += mtk_wcn_consys_hw_gpio_ctrl(0); WMT_PLAT_INFO_FUNC("CONSYS-HW-PWR-OFF, finish(%d)\n",iRet); return iRet; }
INT32 mtk_wcn_consys_hw_pwr_on(UINT32 co_clock_type) { INT32 iRet = 0; WMT_PLAT_INFO_FUNC("CONSYS-HW-PWR-ON, start\n"); iRet += mtk_wcn_consys_hw_reg_ctrl(1, co_clock_type); iRet += mtk_wcn_consys_hw_gpio_ctrl(1); #if CONSYS_ENALBE_SET_JTAG if (gJtagCtrl) mtk_wcn_consys_jtag_set_for_mcu(); #endif WMT_PLAT_INFO_FUNC("CONSYS-HW-PWR-ON, finish(%d)\n", iRet); return iRet; }