summaryrefslogtreecommitdiffstats
path: root/arch/metag/kernel/machines.c
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2012-09-21 17:38:15 +0100
committerJames Hogan <james.hogan@imgtec.com>2013-03-02 20:09:17 +0000
commit85d9d7a9206631abd1030cd69ebb1c45f4a01037 (patch)
tree04041c1a8998b8bf4bd5d91bf4c157fca6164d19 /arch/metag/kernel/machines.c
parent87aa1328f23a6bec15115af4d815e9c378557ef6 (diff)
downloadop-kernel-dev-85d9d7a9206631abd1030cd69ebb1c45f4a01037.zip
op-kernel-dev-85d9d7a9206631abd1030cd69ebb1c45f4a01037.tar.gz
metag: Boot
Add boot code for metag. Due to the multi-threaded nature of Meta it is not uncommon for an RTOS or bare metal application to be started on other hardware threads by the bootloader. Since there is a single MMU switch which affects all threads, the MMU is traditionally configured by the bootloader prior to starting Linux. The bootloader passes a structure to Linux which among other things contains information about memory regions which have been mapped. Linux then assumes control of the local heap memory region. A kernel arguments string pointer or a flattened device tree pointer can be provided in the third argument. Signed-off-by: James Hogan <james.hogan@imgtec.com>
Diffstat (limited to 'arch/metag/kernel/machines.c')
-rw-r--r--arch/metag/kernel/machines.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/metag/kernel/machines.c b/arch/metag/kernel/machines.c
new file mode 100644
index 0000000..1edf6ba
--- /dev/null
+++ b/arch/metag/kernel/machines.c
@@ -0,0 +1,20 @@
+/*
+ * arch/metag/kernel/machines.c
+ *
+ * Copyright (C) 2012 Imagination Technologies Ltd.
+ *
+ * Generic Meta Boards.
+ */
+
+#include <linux/init.h>
+#include <asm/irq.h>
+#include <asm/mach/arch.h>
+
+static const char *meta_boards_compat[] __initdata = {
+ "img,meta",
+ NULL,
+};
+
+MACHINE_START(META, "Generic Meta")
+ .dt_compat = meta_boards_compat,
+MACHINE_END
OpenPOWER on IntegriCloud