void sif_platform_reset_target(void) { wifi_pm_gpio_ctrl("esp_wl_chip_en", 0); mdelay(100); wifi_pm_gpio_ctrl("esp_wl_chip_en", 1); mdelay(100); }
void sif_platform_target_poweroff(void) { wifi_pm_gpio_ctrl("esp_wl_rst", 0); mdelay(100); wifi_pm_gpio_ctrl("esp_wl_chip_en", 0); mdelay(100); //wifi_pm_gpio_ctrl("esp_wl_pw",0); //mdelay(10); }
void sif_platform_target_poweron(void) { // int num = 3; // while(num--) // { // if(!wifi_pm_gpio_ctrl("esp_wl_pw",1)) // break; // mdelay(10); // } // mdelay(120); wifi_pm_gpio_ctrl("esp_wl_chip_en",1); mdelay(100); wifi_pm_gpio_ctrl("esp_wl_rst",1); mdelay(100); }
static int rfkill_set_power(void *data, bool blocked) { unsigned int mod_sel = wifi_pm_get_mod_type(); RF_MSG("rfkill set power %d\n", blocked); switch (mod_sel) { case 2: /* bcm40183 */ if (!blocked) { wifi_pm_gpio_ctrl("bcm40183_bt_regon", 1); wifi_pm_gpio_ctrl("bcm40183_bt_rst", 1); } else { wifi_pm_gpio_ctrl("bcm40183_bt_rst", 0); wifi_pm_gpio_ctrl("bcm40183_bt_regon", 0); } break; case 3: /* realtek rtl8723as */ if (!blocked) { wifi_pm_gpio_ctrl("rtk_rtl8723as_bt_dis", 1); } else { wifi_pm_gpio_ctrl("rtk_rtl8723as_bt_dis", 0); } break; case 7: /* ap6210 */ case 8: /* ap6330 */ if (!blocked) { wifi_pm_gpio_ctrl("ap6xxx_bt_regon", 1); } else { wifi_pm_gpio_ctrl("ap6xxx_bt_regon", 0); } break; case 10: /* realtek rtl8723au */ if (!blocked) { wifi_pm_gpio_ctrl("rtl8723au_bt", 1); } else { wifi_pm_gpio_ctrl("rtl8723au_bt", 0); } break; default: RF_MSG("no bt module matched !!\n"); } msleep(10); return 0; }
static int rfkill_set_power(void *data, bool blocked) { unsigned int mod_sel = wifi_pm_get_mod_type(); if(blocked)blocked = false; RF_MSG("rfkill set power %d\n", blocked); switch (mod_sel) { case 2: /* ap6210 */ if (!blocked) { wifi_pm_gpio_ctrl("ap6xxx_bt_regon", 1); } else { wifi_pm_gpio_ctrl("ap6xxx_bt_regon", 1); } break; case 4: /* realtek rtl8723au */ if (!blocked) { wifi_pm_gpio_ctrl("rtl8723au_bt", 1); } else { wifi_pm_gpio_ctrl("rtl8723au_bt", 1); } break; case 5: /* realtek rtl8723bs */ if (!blocked) { wifi_pm_gpio_ctrl("rtl8723bs_bt_regon", 1); } else { wifi_pm_gpio_ctrl("rtl8723bs_bt_regon", 1); } break; case 7: /* ap6476 */ if (!blocked) { wifi_pm_gpio_ctrl("ap6xxx_bt_regon", 1); } else { wifi_pm_gpio_ctrl("ap6xxx_bt_regon", 1); } break; default: RF_MSG("no bt module matched !!\n"); } msleep(10); return 0; }
void sif_platform_target_speed(int high_speed) { wifi_pm_gpio_ctrl("esp_wl_rst", high_speed); }
void sif_platform_target_speed(int high_speed) { wifi_pm_gpio_ctrl("wl_reg_on", high_speed); }
static int rfkill_set_power(void *data, bool blocked) { unsigned int mod_sel = wifi_pm_get_mod_type(); RF_MSG("rfkill set power %d\n", blocked); switch (mod_sel) { case 2: /* ap6210 */ if (!blocked) { wifi_pm_gpio_ctrl("ap6xxx_bt_regon", 1); } else { wifi_pm_gpio_ctrl("ap6xxx_bt_regon", 0); } break; case 3: /* realtek rtl8723as */ if (!blocked) { wifi_pm_gpio_ctrl("rtk_rtl8723as_bt_dis", 1); } else { wifi_pm_gpio_ctrl("rtk_rtl8723as_bt_dis", 0); } break; case 7: /* mtk6620 */ RF_MSG("[init] just record bt module select %d !!\n",mod_sel); break; case 8: /* realtek rtl8723au */ if (!blocked) { wifi_pm_gpio_ctrl("rtl8723au_bt", 1); } else { wifi_pm_gpio_ctrl("rtl8723au_bt", 0); } break; case 9: /* ap6330 */ if (!blocked) { wifi_pm_gpio_ctrl("ap6xxx_bt_regon", 1); } else { wifi_pm_gpio_ctrl("ap6xxx_bt_regon", 0); } break; case 10: /* ap6476 */ if (!blocked) { wifi_pm_gpio_ctrl("ap6xxx_bt_regon", 1); } else { wifi_pm_gpio_ctrl("ap6xxx_bt_regon", 0); } break; case 11: /* realtek rtl8723bs */ if (!blocked) { wifi_pm_gpio_ctrl("rtl8723bs_bt_regon", 1); } else { wifi_pm_gpio_ctrl("rtl8723bs_bt_regon", 0); } break; default: RF_MSG("no bt module matched !!\n"); } msleep(10); return 0; }