Add SMMU support for: USB, SD, GEM. (See Table 16-3 + 16-11
Ultrascale+ TRM.)

Signed-off-by: Andrea Bastoni <[email protected]>
---
 configs/arm64/zynqmp-zcu102.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/configs/arm64/zynqmp-zcu102.c b/configs/arm64/zynqmp-zcu102.c
index 151285f0..bdcb04b3 100644
--- a/configs/arm64/zynqmp-zcu102.c
+++ b/configs/arm64/zynqmp-zcu102.c
@@ -23,6 +23,7 @@ struct {
        struct jailhouse_memory mem_regions[12];
        struct jailhouse_irqchip irqchips[1];
        struct jailhouse_pci_device pci_devices[2];
+       __u32 stream_ids[8];
 } __attribute__((packed)) config = {
        .header = {
                .signature = JAILHOUSE_SYSTEM_SIGNATURE,
@@ -44,6 +45,13 @@ struct {
                        .pci_mmconfig_end_bus = 0,
                        .pci_is_virtual = 1,
                        .pci_domain = -1,
+                       .iommu_units = {
+                               {
+                                       .type = JAILHOUSE_IOMMU_ARM_MMU500,
+                                       .base = 0xfd800000,
+                                       .size = 0x20000,
+                               },
+                       },
                        .arm = {
                                .gic_version = 2,
                                .gicd_base = 0xf9010000,
@@ -60,6 +68,7 @@ struct {
                        .num_memory_regions = ARRAY_SIZE(config.mem_regions),
                        .num_irqchips = ARRAY_SIZE(config.irqchips),
                        .num_pci_devices = ARRAY_SIZE(config.pci_devices),
+                       .num_stream_ids = ARRAY_SIZE(config.stream_ids),
 
                        .vpci_irq_base = 136-32,
                },
@@ -136,4 +145,8 @@ struct {
                        .shmem_protocol = JAILHOUSE_SHMEM_PROTO_VETH,
                },
        },
+
+       .stream_ids = {
+               0x860, 0x861, 0x870, 0x871, 0x874, 0x875, 0x876, 0x877
+       },
 };
-- 
2.28.0

-- 
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/20201030102540.131429-1-andrea.bastoni%40tum.de.

Reply via email to