-
Notifications
You must be signed in to change notification settings - Fork 8.1k
STM32: add ethernet support to stm32h7rs #97364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
fe4540f
dbf4335
2904f6d
1f24245
ec482c1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,5 @@ supported: | |
- octospi | ||
- can | ||
- canfd | ||
- netif:eth | ||
vendor: st |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,20 @@ static const struct arm_mpu_region mpu_regions[] = { | |
|
||
/* Region 3 */ | ||
MPU_REGION_ENTRY("SRAM_0", CONFIG_SRAM_BASE_ADDRESS, REGION_RAM_ATTR(REGION_SRAM_SIZE)), | ||
|
||
/* Region 4 - Ready only flash with unique device id */ | ||
MPU_REGION_ENTRY("ID", 0x08FFF800, REGION_FLASH_ATTR(REGION_2K)), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @djiatsaf-st Can you confirm this is ok with you wrt #97731 ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I confirm that it works well There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please also read my comment on PR #97731 about MPU configuration issues between this two PRs There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @TD-JBL Comment is not visible. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My comment has a I quote my comment from the other PR:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
You need to submit your review (green button in the upper right) |
||
|
||
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(mac)) | ||
#define sram_eth_node DT_NODELABEL(sram2) | ||
#if DT_NODE_HAS_STATUS_OKAY(sram_eth_node) | ||
/* Region 5 - Ethernet DMA buffer RAM */ | ||
MPU_REGION_ENTRY("SRAM_ETH_BUF", DT_REG_ADDR(sram_eth_node), | ||
REGION_RAM_NOCACHE_ATTR(REGION_16K)), | ||
/* Region 6 - Ethernet DMA descriptor RAM (overlays the first 256B of SRAM_ETH_BUF)*/ | ||
MPU_REGION_ENTRY("SRAM_ETH_DESC", DT_REG_ADDR(sram_eth_node), REGION_PPB_ATTR(REGION_256B)), | ||
#endif | ||
#endif | ||
}; | ||
|
||
const struct arm_mpu_config mpu_config = { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Copyright (c) 2020 Mario Jaun | ||
TD-JBL marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(mac)) | ||
#define sram_eth_node DT_NODELABEL(sram2) | ||
#if DT_NODE_HAS_STATUS_OKAY(sram_eth_node) | ||
SECTION_DATA_PROLOGUE(eth_stm32,(NOLOAD),) | ||
{ | ||
. = ABSOLUTE(DT_REG_ADDR(sram_eth_node)); | ||
*(.eth_stm32_desc) | ||
. = ABSOLUTE(DT_REG_ADDR(sram_eth_node)) + 256; | ||
*(.eth_stm32_buf) | ||
. = ABSOLUTE(DT_REG_ADDR(sram_eth_node)) + 16K; | ||
} GROUP_DATA_LINK_IN(LINKER_DT_NODE_REGION_NAME(sram_eth_node), LINKER_DT_NODE_REGION_NAME(sram_eth_node)) | ||
#endif /* DT_NODE_HAS_STATUS_OKAY(sram_eth_node) */ | ||
|
||
#endif /* DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(mac)) */ |
Uh oh!
There was an error while loading. Please reload this page.