From 0b7b3ae8f859e9b6e213a899f1deebc36dcd9224 Mon Sep 17 00:00:00 2001 From: Ondrej Kosta Date: Thu, 6 Aug 2026 15:04:30 +0200 Subject: [PATCH] feat(esp_eth): enable openeth register mapping for 1000M GMAC --- components/esp_eth/src/openeth/esp_openeth.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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