On 2017-08-21 08:22, Ralf Ramsauer wrote:
> Those regions must be mapped to the root cell if a XUSB device is
> connected.
> 
> Signed-off-by: Ralf Ramsauer <[email protected]>
> ---
>  configs/jetson-tk1.c | 20 +++++++++++++++++---
>  1 file changed, 17 insertions(+), 3 deletions(-)
> 
> diff --git a/configs/jetson-tk1.c b/configs/jetson-tk1.c
> index 262f7b5d..1f7d1e0a 100644
> --- a/configs/jetson-tk1.c
> +++ b/configs/jetson-tk1.c
> @@ -23,7 +23,7 @@
>  struct {
>       struct jailhouse_system header;
>       __u64 cpus[1];
> -     struct jailhouse_memory mem_regions[20];
> +     struct jailhouse_memory mem_regions[22];
>       struct jailhouse_irqchip irqchips[2];
>       struct jailhouse_pci_device pci_devices[1];
>  } __attribute__((packed)) config = {
> @@ -177,13 +177,20 @@ struct {
>                       .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
>                               JAILHOUSE_MEM_IO,
>               },
> -             /* XUSB */ {
> +             /* XUSB_HOST */ {
>                       .phys_start = 0x70090000,
>                       .virt_start = 0x70090000,
>                       .size = 0xa000,
>                       .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
>                               JAILHOUSE_MEM_IO,
>               },
> +             /* XUSB_PADCTL */ {
> +                     .phys_start = 0x7009f000,
> +                     .virt_start = 0x7009f000,
> +                     .size = 0x1000,
> +                     .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
> +                             JAILHOUSE_MEM_IO,
> +             },
>               /* MMC0/1 */ {
>                       .phys_start = 0x700b0000,
>                       .virt_start = 0x700b0000,
> @@ -191,6 +198,13 @@ struct {
>                       .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
>                               JAILHOUSE_MEM_IO,
>               },
> +             /* XUSB_DEV */ {
> +                     .phys_start = 0x700d0000,
> +                     .virt_start = 0x700d0000,
> +                     .size = 0xa000,
> +                     .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
> +                             JAILHOUSE_MEM_IO,
> +             },
>               /* HACK: CPU_DFLL clock */ {
>                       .phys_start = 0x70110000,
>                       .virt_start = 0x70110000,
> @@ -245,7 +259,7 @@ struct {
>                               0xffffff00, 0xffffffff, 0x00000000,
>                               0x00000000, 0x00000000, 0x00000000,
>                       },
> -                     .shmem_region = 19,
> +                     .shmem_region = 21,
>                       .shmem_protocol = JAILHOUSE_SHMEM_PROTO_VETH,
>               },
>       },
> 

Thanks, applied.

Jan

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to