diff options
| author | John Williams <john.williams@petalogix.com> | 2009-06-22 00:02:09 -0400 |
|---|---|---|
| committer | Michal Simek <monstr@monstr.eu> | 2009-07-27 01:39:53 -0400 |
| commit | 909964ec89ba466d75d53250d5738d1891cc1a3d (patch) | |
| tree | 5b0b2ce13b2d82e9193dd0398535f634d8c4d8e7 /arch/microblaze/include | |
| parent | 1170902b343053f50d4caf8ec2aa745fd0ce5c84 (diff) | |
microblaze: Final support for statically linked DTB
If r7 is zero at kernel boot, or does not point to a valid DTB, then
we fall back to a DTB (assumed to be) linked statically in the kernel, instead
of blindly copying bogus cruft into the kernel DTB memory region
Signed-off-by: John Williams <john.williams@petalogix.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/include')
| -rw-r--r-- | arch/microblaze/include/asm/prom.h | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/arch/microblaze/include/asm/prom.h b/arch/microblaze/include/asm/prom.h index 20f7b3a926e8..37e6f305a68e 100644 --- a/arch/microblaze/include/asm/prom.h +++ b/arch/microblaze/include/asm/prom.h | |||
| @@ -16,6 +16,18 @@ | |||
| 16 | #define _ASM_MICROBLAZE_PROM_H | 16 | #define _ASM_MICROBLAZE_PROM_H |
| 17 | #ifdef __KERNEL__ | 17 | #ifdef __KERNEL__ |
| 18 | 18 | ||
| 19 | /* Definitions used by the flattened device tree */ | ||
| 20 | #define OF_DT_HEADER 0xd00dfeed /* marker */ | ||
| 21 | #define OF_DT_BEGIN_NODE 0x1 /* Start of node, full name */ | ||
| 22 | #define OF_DT_END_NODE 0x2 /* End node */ | ||
| 23 | #define OF_DT_PROP 0x3 /* Property: name off, size, content */ | ||
| 24 | #define OF_DT_NOP 0x4 /* nop */ | ||
| 25 | #define OF_DT_END 0x9 | ||
| 26 | |||
| 27 | #define OF_DT_VERSION 0x10 | ||
| 28 | |||
| 29 | #ifndef __ASSEMBLY__ | ||
| 30 | |||
| 19 | #include <linux/types.h> | 31 | #include <linux/types.h> |
| 20 | #include <linux/proc_fs.h> | 32 | #include <linux/proc_fs.h> |
| 21 | #include <linux/platform_device.h> | 33 | #include <linux/platform_device.h> |
| @@ -29,16 +41,6 @@ | |||
| 29 | #define of_prop_cmp(s1, s2) strcmp((s1), (s2)) | 41 | #define of_prop_cmp(s1, s2) strcmp((s1), (s2)) |
| 30 | #define of_node_cmp(s1, s2) strcasecmp((s1), (s2)) | 42 | #define of_node_cmp(s1, s2) strcasecmp((s1), (s2)) |
| 31 | 43 | ||
| 32 | /* Definitions used by the flattened device tree */ | ||
| 33 | #define OF_DT_HEADER 0xd00dfeed /* marker */ | ||
| 34 | #define OF_DT_BEGIN_NODE 0x1 /* Start of node, full name */ | ||
| 35 | #define OF_DT_END_NODE 0x2 /* End node */ | ||
| 36 | #define OF_DT_PROP 0x3 /* Property: name off, size, content */ | ||
| 37 | #define OF_DT_NOP 0x4 /* nop */ | ||
| 38 | #define OF_DT_END 0x9 | ||
| 39 | |||
| 40 | #define OF_DT_VERSION 0x10 | ||
| 41 | |||
| 42 | /* | 44 | /* |
| 43 | * This is what gets passed to the kernel by prom_init or kexec | 45 | * This is what gets passed to the kernel by prom_init or kexec |
| 44 | * | 46 | * |
| @@ -309,5 +311,6 @@ extern void __iomem *of_iomap(struct device_node *device, int index); | |||
| 309 | */ | 311 | */ |
| 310 | #include <linux/of.h> | 312 | #include <linux/of.h> |
| 311 | 313 | ||
| 314 | #endif /* __ASSEMBLY__ */ | ||
| 312 | #endif /* __KERNEL__ */ | 315 | #endif /* __KERNEL__ */ |
| 313 | #endif /* _ASM_MICROBLAZE_PROM_H */ | 316 | #endif /* _ASM_MICROBLAZE_PROM_H */ |
