static void oem_wake_host(int wake) { if(wake)/*wake sdio host to enum device for sth host*/ via_sdio_on(2); else via_sdio_off(2); }
void c2k_wake_host(int wake) { #ifndef CONFIG_EVDO_DT_VIA_SUPPORT static int host_status = 1; /*we should set host off for the first time, so set status to be 1*/ if(wake && !host_status){ /*wake sdio host to enum device for sth host*/ host_status = 1; LOGPRT(LOG_NOTICE, "%s %d host on.\n",__func__,__LINE__); via_sdio_on(3); }else if(host_status){ host_status = 0; LOGPRT(LOG_NOTICE, "%s %d host off.\n",__func__,__LINE__); via_sdio_off(3); } #endif }