mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-14 09:51:28 +00:00
Merge branch 'bugfix/add_kconfig_help_for_eth_gpio0_output_mode' into 'release/v3.3'
ethernet: add kconfig help for GPIO0 output mode See merge request espressif/esp-idf!6114
This commit is contained in:
@@ -825,9 +825,9 @@ static void emac_start(void *param)
|
||||
emac_mac_init();
|
||||
|
||||
/* check if enable promiscuous mode */
|
||||
if(emac_config.promiscuous_enable){
|
||||
if (emac_config.promiscuous_enable) {
|
||||
emac_enable_promiscuous();
|
||||
}else{
|
||||
} else {
|
||||
emac_disable_promiscuous();
|
||||
}
|
||||
|
||||
@@ -1116,12 +1116,15 @@ esp_err_t esp_eth_init_internal(eth_config_t *config)
|
||||
|
||||
if (emac_config.clock_mode != ETH_CLOCK_GPIO0_IN) {
|
||||
#if CONFIG_SPIRAM_SUPPORT
|
||||
if (esp_spiram_is_initialized()) {
|
||||
ESP_LOGE(TAG, "GPIO16 and GPIO17 has been occupied by PSRAM, Only ETH_CLOCK_GPIO_IN is supported!");
|
||||
ret = ESP_FAIL;
|
||||
goto _verify_err;
|
||||
} else {
|
||||
ESP_LOGW(TAG, "GPIO16/17 is used for clock of EMAC, Please Make Sure you're not using PSRAM.");
|
||||
// make sure Ethernet won't have conflict with PSRAM
|
||||
if (emac_config.clock_mode >= ETH_CLOCK_GPIO16_OUT) {
|
||||
if (esp_spiram_is_initialized()) {
|
||||
ESP_LOGE(TAG, "GPIO16 and GPIO17 are occupied by PSRAM, please switch to ETH_CLOCK_GPIO_IN or ETH_CLOCK_GPIO_OUT mode");
|
||||
ret = ESP_FAIL;
|
||||
goto _verify_err;
|
||||
} else {
|
||||
ESP_LOGW(TAG, "Using GPIO16/17 to output Ethernet RMII clock, make sure you don't have PSRAM on board");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
// 50 MHz = 40MHz * (6 + 4) / (2 * (2 + 2) = 400MHz / 8
|
||||
|
@@ -128,11 +128,11 @@ void phy_lan8720_dump_registers()
|
||||
ESP_LOGD(TAG, "ANAR 0x%04x", esp_eth_smi_read(0x4));
|
||||
ESP_LOGD(TAG, "ANLPAR 0x%04x", esp_eth_smi_read(0x5));
|
||||
ESP_LOGD(TAG, "ANER 0x%04x", esp_eth_smi_read(0x6));
|
||||
ESP_LOGD(TAG, "MCSR 0x%04x", esp_eth_smi_read(0x17));
|
||||
ESP_LOGD(TAG, "SM 0x%04x", esp_eth_smi_read(0x18));
|
||||
ESP_LOGD(TAG, "SECR 0x%04x", esp_eth_smi_read(0x26));
|
||||
ESP_LOGD(TAG, "CSIR 0x%04x", esp_eth_smi_read(0x27));
|
||||
ESP_LOGD(TAG, "ISR 0x%04x", esp_eth_smi_read(0x29));
|
||||
ESP_LOGD(TAG, "IMR 0x%04x", esp_eth_smi_read(0x30));
|
||||
ESP_LOGD(TAG, "PSCSR 0x%04x", esp_eth_smi_read(0x31));
|
||||
ESP_LOGD(TAG, "MCSR 0x%04x", esp_eth_smi_read(0x11));
|
||||
ESP_LOGD(TAG, "SM 0x%04x", esp_eth_smi_read(0x12));
|
||||
ESP_LOGD(TAG, "SECR 0x%04x", esp_eth_smi_read(0x1A));
|
||||
ESP_LOGD(TAG, "CSIR 0x%04x", esp_eth_smi_read(0x1B));
|
||||
ESP_LOGD(TAG, "ISR 0x%04x", esp_eth_smi_read(0x1D));
|
||||
ESP_LOGD(TAG, "IMR 0x%04x", esp_eth_smi_read(0x1E));
|
||||
ESP_LOGD(TAG, "PSCSR 0x%04x", esp_eth_smi_read(0x1F));
|
||||
}
|
||||
|
Reference in New Issue
Block a user