diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-04 13:02:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-04 13:02:38 -0400 |
commit | d27050641e9bc056446deb0814e7ba1aa7911f5a (patch) | |
tree | 160f46d9a6df3d7234c71a9fbaa31ebcf89c04d0 /include/asm-generic | |
parent | b77279bc2e81545b20824da701b349272a78e4e7 (diff) | |
parent | 43cb43678705e39b175b325f17938295996aefc7 (diff) |
Merge tag 'devicetree-for-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux into next
Pull DeviceTree updates from Rob Herring:
- Another round of clean-up of FDT related code in architecture code.
This removes knowledge of internal FDT details from most
architectures except powerpc.
- Conversion of kernel's custom FDT parsing code to use libfdt.
- DT based initialization for generic serial earlycon. The
introduction of generic serial earlycon support went in through the
tty tree.
- Improve the platform device naming for DT probed devices to ensure
unique naming and use parent names instead of a global index.
- Fix a race condition in of_update_property.
- Unify the various linker section OF match tables and fix several
function prototype errors.
- Update platform_get_irq_byname to work in deferred probe cases.
- 2 binding doc updates
* tag 'devicetree-for-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (58 commits)
of: handle NULL node in next_child iterators
of/irq: provide more wrappers for !CONFIG_OF
devicetree: bindings: Document micrel vendor prefix
dt: bindings: dwc2: fix required value for the phy-names property
of_pci_irq: kill useless variable in of_irq_parse_pci()
of/irq: do irq resolution in platform_get_irq_byname()
of: Add a testcase for of_find_node_by_path()
of: Make of_find_node_by_path() handle /aliases
of: Create unlocked version of for_each_child_of_node()
lib: add glibc style strchrnul() variant
of: Handle memory@0 node on PPC32 only
pci/of: Remove dead code
of: fix race between search and remove in of_update_property()
of: Use NULL for pointers
of: Stop naming platform_device using dcr address
of: Ensure unique names without sacrificing determinism
tty/serial: pl011: add DT based earlycon support
of/fdt: add FDT serial scanning for earlycon
of/fdt: add FDT address translation support
serial: earlycon: add DT support
...
Diffstat (limited to 'include/asm-generic')
-rw-r--r-- | include/asm-generic/vmlinux.lds.h | 60 |
1 files changed, 16 insertions, 44 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 146e4fffd710..d647637cd699 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
@@ -139,52 +139,23 @@ | |||
139 | #define TRACE_SYSCALLS() | 139 | #define TRACE_SYSCALLS() |
140 | #endif | 140 | #endif |
141 | 141 | ||
142 | #ifdef CONFIG_CLKSRC_OF | ||
143 | #define CLKSRC_OF_TABLES() . = ALIGN(8); \ | ||
144 | VMLINUX_SYMBOL(__clksrc_of_table) = .; \ | ||
145 | *(__clksrc_of_table) \ | ||
146 | *(__clksrc_of_table_end) | ||
147 | #else | ||
148 | #define CLKSRC_OF_TABLES() | ||
149 | #endif | ||
150 | 142 | ||
151 | #ifdef CONFIG_IRQCHIP | 143 | #define ___OF_TABLE(cfg, name) _OF_TABLE_##cfg(name) |
152 | #define IRQCHIP_OF_MATCH_TABLE() \ | 144 | #define __OF_TABLE(cfg, name) ___OF_TABLE(cfg, name) |
145 | #define OF_TABLE(cfg, name) __OF_TABLE(config_enabled(cfg), name) | ||
146 | #define _OF_TABLE_0(name) | ||
147 | #define _OF_TABLE_1(name) \ | ||
153 | . = ALIGN(8); \ | 148 | . = ALIGN(8); \ |
154 | VMLINUX_SYMBOL(__irqchip_begin) = .; \ | 149 | VMLINUX_SYMBOL(__##name##_of_table) = .; \ |
155 | *(__irqchip_of_table) \ | 150 | *(__##name##_of_table) \ |
156 | *(__irqchip_of_end) | 151 | *(__##name##_of_table_end) |
157 | #else | ||
158 | #define IRQCHIP_OF_MATCH_TABLE() | ||
159 | #endif | ||
160 | |||
161 | #ifdef CONFIG_COMMON_CLK | ||
162 | #define CLK_OF_TABLES() . = ALIGN(8); \ | ||
163 | VMLINUX_SYMBOL(__clk_of_table) = .; \ | ||
164 | *(__clk_of_table) \ | ||
165 | *(__clk_of_table_end) | ||
166 | #else | ||
167 | #define CLK_OF_TABLES() | ||
168 | #endif | ||
169 | |||
170 | #ifdef CONFIG_OF_RESERVED_MEM | ||
171 | #define RESERVEDMEM_OF_TABLES() \ | ||
172 | . = ALIGN(8); \ | ||
173 | VMLINUX_SYMBOL(__reservedmem_of_table) = .; \ | ||
174 | *(__reservedmem_of_table) \ | ||
175 | *(__reservedmem_of_table_end) | ||
176 | #else | ||
177 | #define RESERVEDMEM_OF_TABLES() | ||
178 | #endif | ||
179 | 152 | ||
180 | #ifdef CONFIG_SMP | 153 | #define CLKSRC_OF_TABLES() OF_TABLE(CONFIG_CLKSRC_OF, clksrc) |
181 | #define CPU_METHOD_OF_TABLES() . = ALIGN(8); \ | 154 | #define IRQCHIP_OF_MATCH_TABLE() OF_TABLE(CONFIG_IRQCHIP, irqchip) |
182 | VMLINUX_SYMBOL(__cpu_method_of_table_begin) = .; \ | 155 | #define CLK_OF_TABLES() OF_TABLE(CONFIG_COMMON_CLK, clk) |
183 | *(__cpu_method_of_table) \ | 156 | #define RESERVEDMEM_OF_TABLES() OF_TABLE(CONFIG_OF_RESERVED_MEM, reservedmem) |
184 | VMLINUX_SYMBOL(__cpu_method_of_table_end) = .; | 157 | #define CPU_METHOD_OF_TABLES() OF_TABLE(CONFIG_SMP, cpu_method) |
185 | #else | 158 | #define EARLYCON_OF_TABLES() OF_TABLE(CONFIG_SERIAL_EARLYCON, earlycon) |
186 | #define CPU_METHOD_OF_TABLES() | ||
187 | #endif | ||
188 | 159 | ||
189 | #define KERNEL_DTB() \ | 160 | #define KERNEL_DTB() \ |
190 | STRUCT_ALIGN(); \ | 161 | STRUCT_ALIGN(); \ |
@@ -513,7 +484,8 @@ | |||
513 | CLKSRC_OF_TABLES() \ | 484 | CLKSRC_OF_TABLES() \ |
514 | CPU_METHOD_OF_TABLES() \ | 485 | CPU_METHOD_OF_TABLES() \ |
515 | KERNEL_DTB() \ | 486 | KERNEL_DTB() \ |
516 | IRQCHIP_OF_MATCH_TABLE() | 487 | IRQCHIP_OF_MATCH_TABLE() \ |
488 | EARLYCON_OF_TABLES() | ||
517 | 489 | ||
518 | #define INIT_TEXT \ | 490 | #define INIT_TEXT \ |
519 | *(.init.text) \ | 491 | *(.init.text) \ |