summaryrefslogtreecommitdiffstats
path: root/drivers/of/Kconfig
diff options
context:
space:
mode:
authorStephen Neuendorffer2010-11-19 00:54:56 +0100
committerGrant Likely2010-12-30 00:08:18 +0100
commite6ce1324e4f08b0d984340201a125806dae0e9a6 (patch)
treefe7e203f2e5d73b555a6fcb713948cf4fe5f7715 /drivers/of/Kconfig
parentpowerpc/pcm{030,032}: add pagesize to dts (diff)
downloadkernel-qcow2-linux-e6ce1324e4f08b0d984340201a125806dae0e9a6.tar.gz
kernel-qcow2-linux-e6ce1324e4f08b0d984340201a125806dae0e9a6.tar.xz
kernel-qcow2-linux-e6ce1324e4f08b0d984340201a125806dae0e9a6.zip
of/flattree: Add Kconfig for EARLY_FLATTREE
The device tree code is now in two pieces: some which can be used generically on any platform which selects CONFIG_OF_FLATTREE, and some early which is used at boot time on only a few architectures. This patch segregates the early code so that only those architectures which care about it need compile it. This also means that some of the requirements in the early code (such as a cmd_line variable) that most architectures (e.g. X86) don't provide can be ignored. Signed-off-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> [grant.likely@secretlab.ca: remove extra blank line addition] [grant.likely@secretlab.ca: fixed incorrect #ifdef CONFIG_EARLY_FLATTREE check] [grant.likely@secretlab.ca: Made OF_EARLY_FLATTREE select instead of depend on OF_FLATTREE] Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/of/Kconfig')
-rw-r--r--drivers/of/Kconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig
index e4b93a0a15d2..3c6e100a3ad0 100644
--- a/drivers/of/Kconfig
+++ b/drivers/of/Kconfig
@@ -19,6 +19,10 @@ config OF_FLATTREE
bool
select DTC
+config OF_EARLY_FLATTREE
+ bool
+ select OF_FLATTREE
+
config OF_PROMTREE
bool