diff options
| author | Grant Likely <grant.likely@secretlab.ca> | 2011-07-05 23:42:29 -0600 |
|---|---|---|
| committer | Grant Likely <grant.likely@secretlab.ca> | 2011-07-19 16:34:48 -0600 |
| commit | 602a3434b67ecdb5cdd055a650a59169d4c0f738 (patch) | |
| tree | 7bd85d71cd5f61c0e47169372fbc29fc3fea9627 | |
| parent | 9d75ab8108e1d88411e52a5faa5759bddb4b4933 (diff) | |
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>
| -rw-r--r-- | arch/arm/include/asm/mach/arch.h | 7 |
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 946f4d778f7..ae744a842c0 100644 --- a/arch/arm/include/asm/mach/arch.h +++ b/arch/arm/include/asm/mach/arch.h @@ -70,4 +70,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 |
