From 1dd7b5663459daa2a443d0713fda0af8564e0fee Mon Sep 17 00:00:00 2001 From: Laurentiu Tudor Date: Wed, 27 Sep 2023 18:30:47 +0300 Subject: 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 Signed-off-by: Peng Fan --- board/freescale/lx2160a/lx2160a.c | 1 + 1 file changed, 1 insertion(+) (limited to 'board') 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); -- cgit v1.2.3