diff --git a/components/esp_eth/src/openeth/esp_openeth.h b/components/esp_eth/src/openeth/esp_openeth.h index 8fe99d92e72..1cef94dca87 100644 --- a/components/esp_eth/src/openeth/esp_openeth.h +++ b/components/esp_eth/src/openeth/esp_openeth.h @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2023-2026 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ @@ -13,7 +13,11 @@ * we can reuse the Wifi interrupt source for ethernet, since QEMU doesn't emulate Wifi (yet). * We also map the EMAC registers to an unused address range. */ - #if SOC_WIFI_SUPPORTED && !SOC_EMAC_SUPPORTED +#if SOC_WIFI_SUPPORTED && !SOC_EMAC_SUPPORTED #define ETS_ETH_MAC_INTR_SOURCE ETS_WIFI_MAC_INTR_SOURCE #define DR_REG_EMAC_BASE 0x600CD000 #endif + +#if SOC_EMAC_SUPPORT_1000M +#define DR_REG_EMAC_BASE DR_REG_GMAC_BASE +#endif