aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorLaurentiu Tudor2023-09-27 18:30:47 +0300
committerPeng Fan2023-10-10 10:13:33 +0800
commit1dd7b5663459daa2a443d0713fda0af8564e0fee (patch)
treeba201cbb0ddab5c32cce84ff2ee55d4a577acd96 /board
parentb9112cdfb5352d787942e6bb1aa1c35889262472 (diff)
drivers: net: fsl-mc: add support for MC reserved memory
Add support for declaring in device tree the reserved memory ranges required for MC. Since the MC firmware acts as any DMA master present in the SoC, the reserved memory ranges need also be identity mapped in the SMMU, so create the required 'iommu-addresses' property in the reserved memory nodes. For now this support is used only on LX2160A SoCs. Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/lx2160a/lx2160a.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/freescale/lx2160a/lx2160a.c b/board/freescale/lx2160a/lx2160a.c
index 2883848550a..b3187a14214 100644
--- a/board/freescale/lx2160a/lx2160a.c
+++ b/board/freescale/lx2160a/lx2160a.c
@@ -836,6 +836,7 @@ int ft_board_setup(void *blob, struct bd_info *bd)
#ifdef CONFIG_FSL_MC_ENET
fdt_fsl_mc_fixup_iommu_map_entry(blob);
fdt_fixup_board_enet(blob);
+ fdt_reserve_mc_mem(blob, 0x4000);
#endif
fdt_fixup_icid(blob);