/******************************************************************************* * Function definitions *******************************************************************************/ void boot_init_msdc_clock() { /* Router project */ #if defined(__SMART_PHONE_MODEM__) && !defined(__X_BOOTING__) /* * Do nothing, because the ownership is at AP side, * and it assumes that the APMCU would handle the AP's CLKCTL */ /* Phone project */ #elif defined(__SMART_PHONE_MODEM__) && defined(__X_BOOTING__) /* * In phone project, both MSDC0&1 should be shut down */ PDN_SET(PDN_MSDC0); PDN_SET(PDN_MSDC1); IPCG_SET(IPCG_MSDC0); IPCG_SET(IPCG_MSDC1); /* Host dongle project */ #elif defined(__MODEM_CARD__) && !defined(__TRADITIONAL_MODEM_CARD__) /* * In dongle project, MSDC0 would be run-time PDN_SET/PDN_CLR * by MSDC0 driver */ PDN_SET(PDN_MSDC1); IPCG_SET(IPCG_MSDC1); /* Traditional dongle project */ #elif defined(__MODEM_CARD__) && defined(__TRADITIONAL_MODEM_CARD__) /* * In dongle project, MSDC0 would be run-time PDN_SET/PDN_CLR * by MSDC0 driver */ PDN_SET(PDN_MSDC1); IPCG_SET(IPCG_MSDC1); #endif }
/******************************************************************************* * Function definitions *******************************************************************************/ void boot_init_nic_clock() { #if defined(MT6290) #if defined(__SMART_PHONE_MODEM__) && !defined(__X_BOOTING__) //router //NIC in router product will be controlled by AP #elif defined(__MODEM_CARD__) && !(defined(__TRADITIONAL_MODEM_CARD__)) //hosted dongle #else //NIC will not be used on phone/traditional dongle, so power down it directly IPCG_SET(IPCG_NIC); PDN_SET(PDN_NIC); #endif #endif }