arm/dt: Allow CONFIG_OF on ARM
authorGrant Likely <grant.likely@secretlab.ca>
Thu, 28 Apr 2011 20:27:20 +0000 (14:27 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 11 May 2011 13:14:29 +0000 (15:14 +0200)
commit9eb8f6743b076b67f00776cda4330c802e157b41
tree665b7bc96e672e4f3df6c25ea08b00714331a0c4
parent4c2896e88d976d0e5b2213c64cde885f5677fa2b
arm/dt: Allow CONFIG_OF on ARM

Add some basic empty infrastructure for DT support on ARM.

v5: - Fix off-by-one error in size calculation of initrd
    - Stop mucking with cmd_line, and load command line from dt into
      boot_command_line instead which matches the behaviour of ATAGS booting
v3: - moved cmd_line export and initrd setup to this patch to make the
      series bisectable.
    - switched to alloc_bootmem_align() for allocation when
      unflattening the device tree.  memblock_alloc() was not the
      right interface.

Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/arm/Kconfig
arch/arm/include/asm/prom.h [new file with mode: 0644]
arch/arm/include/asm/setup.h
arch/arm/kernel/Makefile
arch/arm/kernel/devtree.c [new file with mode: 0644]
arch/arm/kernel/setup.c
arch/arm/mm/init.c