mirror of
https://github.com/apache/nuttx.git
synced 2026-10-05 05:07:48 +00:00
mpfs_ethernet.c: Remove DMA_ENABLE hack
The hack just opens the entire SoC memory unconditionally, which is not a good idea. Test features can be used ad-hoc, they don't need to be supported by the build.
This commit is contained in:
parent
9483729328
commit
fbd8a2127a
2 changed files with 0 additions and 18 deletions
|
|
@ -789,13 +789,6 @@ config MPFS_ETHMAC_REGDEBUG
|
|||
Enable very low-level register access debug. Depends on
|
||||
CONFIG_DEBUG_FEATURES.
|
||||
|
||||
config MPFS_MPU_DMA_ENABLE
|
||||
bool "Enable ALL memory access for eth DMA"
|
||||
default n
|
||||
---help---
|
||||
Set ALL memory accessible for Ethernet DMA.
|
||||
This should be done on bootloader. This is mostly for testing only.
|
||||
|
||||
endmenu
|
||||
|
||||
config MPFS_HAVE_CORERMII
|
||||
|
|
|
|||
|
|
@ -3627,17 +3627,6 @@ int mpfs_ethinitialize(int intf)
|
|||
|
||||
mpfs_read_dsn(&priv->dev.d_mac.ether.ether_addr_octet[1], 5);
|
||||
|
||||
/* MPU hack for ETH DMA if not enabled by bootloader */
|
||||
|
||||
#ifdef CONFIG_MPFS_MPU_DMA_ENABLE
|
||||
# ifdef CONFIG_MPFS_ETHMAC_0
|
||||
putreg64(0x1f00000fffffffff, MPFS_PMPCFG_ETH0_0);
|
||||
# endif
|
||||
# ifdef CONFIG_MPFS_ETHMAC_1
|
||||
putreg64(0x1f00000fffffffff, MPFS_PMPCFG_ETH1_0);
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Allocate buffers */
|
||||
|
||||
ret = mpfs_buffer_initialize(priv, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue