summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2011-07-25 09:52:11 -0600
committerGrant Likely <grant.likely@secretlab.ca>2011-07-25 09:52:11 -0600
commit85cad1b0b6409c62bce4828da2fd8a535e2148b0 (patch)
tree2fc11aea0ed6a4dd13f81c77b5cddd3926daa2b5 /arch/arm
parentb6844e8f64920cdee620157252169ba63afb0c89 (diff)
downloadblackbird-op-linux-85cad1b0b6409c62bce4828da2fd8a535e2148b0.tar.gz
blackbird-op-linux-85cad1b0b6409c62bce4828da2fd8a535e2148b0.zip
arm/dt: Add dt machine definition
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>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/include/asm/mach/arch.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/include/asm/mach/arch.h b/arch/arm/include/asm/mach/arch.h
index 3281fb4b12e3..217aa1911dd7 100644
--- a/arch/arm/include/asm/mach/arch.h
+++ b/arch/arm/include/asm/mach/arch.h
@@ -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
OpenPOWER on IntegriCloud