aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa/include/asm/bootparam.h
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2012-11-04 00:30:13 +0400
committerChris Zankel <chris@zankel.net>2012-12-18 21:10:23 -0800
commitda844a81779e2bb263eca4ecb1046541fdb11cf8 (patch)
tree22f332194e7c13b1b4e2f9715c047722d0dd958a /arch/xtensa/include/asm/bootparam.h
parentxtensa: add IRQ domains support (diff)
downloadlinux-dev-da844a81779e2bb263eca4ecb1046541fdb11cf8.tar.xz
linux-dev-da844a81779e2bb263eca4ecb1046541fdb11cf8.zip
xtensa: add device trees support
Device trees allow specification of hardware topology and device parameters at runtime instead of hard-coding them in platform setup code. This allows running single binary kernel on a range of compatible boards. New boot parameters tag BP_TAG_FDT is allocated and a pointer to flat device tree is passed in it. Note that current interrupt mapping scheme uses single cell for interrupt identification. That means that IRQ numbers used in DTS must be CPU internal IRQ numbers, not external. It is possible to extend interrupt identification to two cells, and use second cell to tell external IRQ numbers form internal. That would allow to use single DTS on multiple boards with different mapping of external IRQ numbers. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa/include/asm/bootparam.h')
-rw-r--r--arch/xtensa/include/asm/bootparam.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/bootparam.h b/arch/xtensa/include/asm/bootparam.h
index 9983f2c1b7ee..057077e96c98 100644
--- a/arch/xtensa/include/asm/bootparam.h
+++ b/arch/xtensa/include/asm/bootparam.h
@@ -22,6 +22,7 @@
#define BP_TAG_MEMORY 0x1003 /* memory addr and size (bp_meminfo) */
#define BP_TAG_SERIAL_BAUSRATE 0x1004 /* baud rate of current console. */
#define BP_TAG_SERIAL_PORT 0x1005 /* serial device of current console */
+#define BP_TAG_FDT 0x1006 /* flat device tree addr */
#define BP_TAG_FIRST 0x7B0B /* first tag with a version number */
#define BP_TAG_LAST 0x7E0B /* last tag */