x86, olpc: Add missing elements to device tree
authorDaniel Drake <dsd@laptop.org>
Sat, 25 Jun 2011 16:34:08 +0000 (17:34 +0100)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 6 Jul 2011 21:44:19 +0000 (14:44 -0700)
commitf70d8ef4745349000dc599b6873a8b866289c694
treeb3fbc0a71671532e23533114e759e0519570f6ab
parentfe0d42203cb5616eeff68b14576a0f7e2dd56625
x86, olpc: Add missing elements to device tree

In response to new device tree code in the kernel, OLPC will start
using it for probing of certain devices. However, some firmware fixes
are needed to put the devicetree into a usable state.

Retain compatibility with old firmware by fixing up the device tree
at boot-time if it does not contain the new nodes/properties that
we need for probing. This is the same approach taken on PPC platforms.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Link: http://lkml.kernel.org/r/1309019658-1712-2-git-send-email-dsd@laptop.org
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Andres Salomon <dilinger@queued.net>
Cc: devicetree-discuss@lists.ozlabs.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/platform/olpc/olpc_dt.c