mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
Merge branch 'fix/p4_fixed_mdc_config_v5.4' into 'release/v5.4'
fix(esp_eth): fixed ESP32P4 CSR clock range used to determine MDC (v5.4) See merge request espressif/esp-idf!44227
This commit is contained in:
@@ -45,7 +45,7 @@ static uint32_t clk_hal_mem_get_freq_hz(void)
|
||||
return clk_hal_cpu_get_freq_hz() / clk_ll_mem_get_divider();
|
||||
}
|
||||
|
||||
static uint32_t clk_hal_sys_get_freq_hz(void)
|
||||
uint32_t clk_hal_sys_get_freq_hz(void)
|
||||
{
|
||||
return clk_hal_mem_get_freq_hz() / clk_ll_sys_get_divider();
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "hal/eth_types.h"
|
||||
#include "soc/emac_dma_struct.h"
|
||||
#include "soc/emac_mac_struct.h"
|
||||
#include "soc/clk_tree_defs.h"
|
||||
|
||||
#include "soc/hp_system_struct.h"
|
||||
#include "soc/hp_sys_clkrst_struct.h"
|
||||
@@ -578,6 +579,12 @@ static inline void emac_ll_receive_poll_demand(emac_dma_dev_t *dma_regs, uint32_
|
||||
/*************** End of dma regs operation *********************/
|
||||
|
||||
|
||||
static inline soc_module_clk_t emac_ll_get_csr_clk_src(void)
|
||||
{
|
||||
// Source of the ESP32P4 EMAC CRS clock is SYS clock.
|
||||
return SOC_MOD_CLK_SYS;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Enable the bus clock for the EMAC module
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user