]> git.karo-electronics.de Git - linux-beck.git/commitdiff
arm/dt: Add dt machine definition
authorGrant Likely <grant.likely@secretlab.ca>
Mon, 25 Jul 2011 15:52:11 +0000 (09:52 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Mon, 25 Jul 2011 15:52:11 +0000 (09:52 -0600)
This patch adds a DT_MACHINE_START macro to use instead of
MACHINE_START when creating a machine_desc that supports using the
device tree.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/arm/include/asm/mach/arch.h

index 3281fb4b12e3342a6dd45af7c17bcf5d16aec4fe..217aa1911dd7a01641a8d9e85220c2128d263b0b 100644 (file)
@@ -74,4 +74,11 @@ static const struct machine_desc __mach_desc_##_type \
 #define MACHINE_END                            \
 };
 
+#define DT_MACHINE_START(_name, _namestr)              \
+static const struct machine_desc __mach_desc_##_name   \
+ __used                                                        \
+ __attribute__((__section__(".arch.info.init"))) = {   \
+       .nr             = ~0,                           \
+       .name           = _namestr,
+
 #endif