| /* |
| * Copyright (c) 2020 Mario Jaun |
| * |
| * SPDX-License-Identifier: Apache-2.0 |
| */ |
| |
| #if DT_NODE_HAS_STATUS(DT_NODELABEL(mac), okay) |
| |
| SECTION_DATA_PROLOGUE(eth_stm32,(NOLOAD),) |
| { |
| #if DT_NODE_HAS_STATUS(DT_NODELABEL(sram3), okay) |
| . = ABSOLUTE(DT_REG_ADDR(DT_NODELABEL(sram3))); |
| *(.eth_stm32_desc) |
| . = ABSOLUTE(DT_REG_ADDR(DT_NODELABEL(sram3))) + 256; |
| *(.eth_stm32_buf) |
| . = ABSOLUTE(DT_REG_ADDR(DT_NODELABEL(sram3))) + 16K; |
| } GROUP_DATA_LINK_IN(LINKER_DT_NODE_REGION_NAME(DT_NODELABEL(sram3)), LINKER_DT_NODE_REGION_NAME(DT_NODELABEL(sram3))) |
| |
| #else |
| . = ABSOLUTE(DT_REG_ADDR(DT_NODELABEL(sram2))); |
| *(.eth_stm32_desc) |
| . = ABSOLUTE(DT_REG_ADDR(DT_NODELABEL(sram2))) + 256; |
| *(.eth_stm32_buf) |
| . = ABSOLUTE(DT_REG_ADDR(DT_NODELABEL(sram2))) + 16K; |
| } GROUP_DATA_LINK_IN(LINKER_DT_NODE_REGION_NAME(DT_NODELABEL(sram2)), LINKER_DT_NODE_REGION_NAME(DT_NODELABEL(sram2))) |
| #endif |
| #endif |