Re: [PATCH v2 Resend] configs: TK1: Add XUSB_DEV and XUSB_PADCTL regions

2017-08-22 Thread Jan Kiszka
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 
> ---
>  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 = 0x7009,
>   .virt_start = 0x7009,
>   .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 = 0x700b,
>   .virt_start = 0x700b,
> @@ -191,6 +198,13 @@ struct {
>   .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
>   JAILHOUSE_MEM_IO,
>   },
> + /* XUSB_DEV */ {
> + .phys_start = 0x700d,
> + .virt_start = 0x700d,
> + .size = 0xa000,
> + .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
> + JAILHOUSE_MEM_IO,
> + },
>   /* HACK: CPU_DFLL clock */ {
>   .phys_start = 0x7011,
>   .virt_start = 0x7011,
> @@ -245,7 +259,7 @@ struct {
>   0xff00, 0x, 0x,
>   0x, 0x, 0x,
>   },
> - .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 jailhouse-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[PATCH v2 Resend] configs: TK1: Add XUSB_DEV and XUSB_PADCTL regions

2017-08-21 Thread Ralf Ramsauer
Those regions must be mapped to the root cell if a XUSB device is
connected.

Signed-off-by: Ralf Ramsauer 
---
 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 = 0x7009,
.virt_start = 0x7009,
.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 = 0x700b,
.virt_start = 0x700b,
@@ -191,6 +198,13 @@ struct {
.flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
JAILHOUSE_MEM_IO,
},
+   /* XUSB_DEV */ {
+   .phys_start = 0x700d,
+   .virt_start = 0x700d,
+   .size = 0xa000,
+   .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
+   JAILHOUSE_MEM_IO,
+   },
/* HACK: CPU_DFLL clock */ {
.phys_start = 0x7011,
.virt_start = 0x7011,
@@ -245,7 +259,7 @@ struct {
0xff00, 0x, 0x,
0x, 0x, 0x,
},
-   .shmem_region = 19,
+   .shmem_region = 21,
.shmem_protocol = JAILHOUSE_SHMEM_PROTO_VETH,
},
},
-- 
2.14.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 jailhouse-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.