]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xtensa: add device trees support
authorMax Filippov <jcmvbkbc@gmail.com>
Sat, 3 Nov 2012 20:30:13 +0000 (00:30 +0400)
committerChris Zankel <chris@zankel.net>
Wed, 28 Nov 2012 20:05:22 +0000 (12:05 -0800)
commit6831722c564d7a516c18403b7444cfb6b7761c57
tree200ffbc73e314216ff2014ca29bab45ce29c360f
parentcb25f43fa1a2c0c3d578e95ebee93c6f7362ebab
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>
arch/xtensa/Kconfig
arch/xtensa/Makefile
arch/xtensa/boot/Makefile
arch/xtensa/include/asm/bootparam.h
arch/xtensa/include/asm/prom.h [new file with mode: 0644]
arch/xtensa/kernel/irq.c
arch/xtensa/kernel/setup.c