This patch adds the inmate support for the Tegra TX1 board.

Signed-off-by: Claudio Scordino <[email protected]>
---
 inmates/lib/arm64/Makefile                             |  1 +
 inmates/lib/arm64/Makefile.lib                         |  1 +
 inmates/lib/arm64/include/mach-tegra-tx1/mach/gic_v2.h | 14 ++++++++++++++
 inmates/lib/arm64/include/mach-tegra-tx1/mach/timer.h  | 13 +++++++++++++
 inmates/lib/arm64/include/mach-tegra-tx1/mach/uart.h   | 13 +++++++++++++
 5 files changed, 42 insertions(+)
 create mode 100644 inmates/lib/arm64/include/mach-tegra-tx1/mach/gic_v2.h
 create mode 100644 inmates/lib/arm64/include/mach-tegra-tx1/mach/timer.h
 create mode 100644 inmates/lib/arm64/include/mach-tegra-tx1/mach/uart.h

diff --git a/inmates/lib/arm64/Makefile b/inmates/lib/arm64/Makefile
index b4f2bc8..0af5b90 100644
--- a/inmates/lib/arm64/Makefile
+++ b/inmates/lib/arm64/Makefile
@@ -19,3 +19,4 @@ lib-y                         += ../arm/gic.o ../arm/printk.o 
../arm/timer.o
 lib-y                          += ../string.o ../cmdline.o
 lib-$(CONFIG_ARM_GIC_V2)       += ../arm/gic-v2.o
 lib-$(CONFIG_SERIAL_AMBA_PL011)        += ../arm/uart-pl011.o
+lib-$(CONFIG_SERIAL_TEGRA)     += ../arm/uart-tegra.o
diff --git a/inmates/lib/arm64/Makefile.lib b/inmates/lib/arm64/Makefile.lib
index f8519d8..b28b753 100644
--- a/inmates/lib/arm64/Makefile.lib
+++ b/inmates/lib/arm64/Makefile.lib
@@ -28,6 +28,7 @@ endef
 mach-$(CONFIG_MACH_FOUNDATION_V8)      := foundation-v8
 mach-$(CONFIG_MACH_AMD_SEATTLE)         := amd-seattle
 mach-$(CONFIG_MACH_HI6220)             := hi6220
+mach-$(CONFIG_MACH_TEGRA_TX1)          := tegra-tx1
 
 MACHINE                                        := mach-$(mach-y)
 KBUILD_CFLAGS                          += -I$(INMATES_LIB)/include/$(MACHINE)
diff --git a/inmates/lib/arm64/include/mach-tegra-tx1/mach/gic_v2.h 
b/inmates/lib/arm64/include/mach-tegra-tx1/mach/gic_v2.h
new file mode 100644
index 0000000..e513194
--- /dev/null
+++ b/inmates/lib/arm64/include/mach-tegra-tx1/mach/gic_v2.h
@@ -0,0 +1,14 @@
+/*
+ * Jailhouse, a Linux-based partitioning hypervisor
+ *
+ * Copyright (c) Siemens AG, 2015
+ *
+ * Authors:
+ *  Jan Kiszka <[email protected]>
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2.  See
+ * the COPYING file in the top-level directory.
+ */
+
+#define GICD_BASE      ((void *)0x50041000)
+#define GICC_BASE      ((void *)0x50042000)
diff --git a/inmates/lib/arm64/include/mach-tegra-tx1/mach/timer.h 
b/inmates/lib/arm64/include/mach-tegra-tx1/mach/timer.h
new file mode 100644
index 0000000..428162d
--- /dev/null
+++ b/inmates/lib/arm64/include/mach-tegra-tx1/mach/timer.h
@@ -0,0 +1,13 @@
+/*
+ * Jailhouse, a Linux-based partitioning hypervisor
+ *
+ * Copyright (c) Siemens AG, 2015
+ *
+ * Authors:
+ *  Jan Kiszka <[email protected]>
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2.  See
+ * the COPYING file in the top-level directory.
+ */
+
+#define TIMER_IRQ      27
diff --git a/inmates/lib/arm64/include/mach-tegra-tx1/mach/uart.h 
b/inmates/lib/arm64/include/mach-tegra-tx1/mach/uart.h
new file mode 100644
index 0000000..7b97dc7
--- /dev/null
+++ b/inmates/lib/arm64/include/mach-tegra-tx1/mach/uart.h
@@ -0,0 +1,13 @@
+/*
+ * Jailhouse, a Linux-based partitioning hypervisor
+ *
+ * Copyright (c) Siemens AG, 2015
+ *
+ * Authors:
+ *  Jan Kiszka <[email protected]>
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2.  See
+ * the COPYING file in the top-level directory.
+ */
+
+#define UART_BASE      ((void *)0x70006000)
-- 
2.7.4

-- 
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