From: Nikhil Devshatwar <[email protected]>

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 | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/configs/arm64/k3-j721e-evm.c b/configs/arm64/k3-j721e-evm.c
index 1de90416..825883c8 100644
--- a/configs/arm64/k3-j721e-evm.c
+++ b/configs/arm64/k3-j721e-evm.c
@@ -56,7 +56,29 @@ struct {
                                        .base = 0x36600000,
                                        .size = 0x100000,
                                },
+                               {
+                                       .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/20200108111825.14280-5-nikhil.nd%40ti.com.

Reply via email to