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 --- include/fsl-mc/fsl_mc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/fsl-mc/fsl_mc.h b/include/fsl-mc/fsl_mc.h index c701dc1084b..258738dfc8c 100644 --- a/include/fsl-mc/fsl_mc.h +++ b/include/fsl-mc/fsl_mc.h @@ -66,6 +66,7 @@ int get_mc_boot_status(void); int get_dpl_apply_status(void); int is_lazy_dpl_addr_valid(void); void fdt_fixup_mc_ddr(u64 *base, u64 *size); +void fdt_reserve_mc_mem(void *blob, u32 mc_icid); #ifdef CFG_SYS_LS_MC_DRAM_AIOP_IMG_OFFSET int get_aiop_apply_status(void); #endif -- cgit v1.2.3