feat(esp_eth): enable openeth register mapping for 1000M GMAC

This commit is contained in:
Ondrej Kosta
2026-08-06 15:04:30 +02:00
committed by Euripedes Rocha
parent 0cee33035c
commit a6f543a25b

View File

@@ -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