J721e device has 3 instance of PVU which can be used as IOMMU.
Each PVU has a config region and a TLB region where the memory
mapping information is stored.
Describe these as part of the root cell's platform_data.

Signed-off-by: Nikhil Devshatwar <[email protected]>
---
 configs/arm64/k3-j721e-evm.c | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/configs/arm64/k3-j721e-evm.c b/configs/arm64/k3-j721e-evm.c
index ff6dcff4..8fb4773b 100644
--- a/configs/arm64/k3-j721e-evm.c
+++ b/configs/arm64/k3-j721e-evm.c
@@ -50,6 +50,30 @@ struct {
                                .gicr_base = 0x01900000,
                                .maintenance_irq = 25,
                        },
+                       .arm.iommu_units= {
+                               {
+                                       .type           = JAILHOUSE_IOMMU_PVU,
+                                       .base           = 0x30f80000,
+                                       .size           = 0x1000,
+                                       .tipvu_tlb_base = 0x36000000,
+                                       .tipvu_tlb_size = 0x40000,
+                               },
+                               {
+                                       .type           = JAILHOUSE_IOMMU_PVU,
+                                       .base           = 0x30f81000,
+                                       .size           = 0x1000,
+                                       .tipvu_tlb_base = 0x36040000,
+                                       .tipvu_tlb_size = 0x40000,
+                               },
+                               {
+                                       .type           = JAILHOUSE_IOMMU_PVU,
+                                       .base           = 0x30f83000,
+                                       .size           = 0x1000,
+                                       .tipvu_tlb_base = 0x360c0000,
+                                       .tipvu_tlb_size = 0x40000,
+                               },
+                       },
+
                },
                .root_cell = {
                        .name = "k3-j721e-evm",
-- 
2.17.1

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/20191230132406.19985-4-nikhil.nd%40ti.com.

Reply via email to