[PATCH 1/5] asm-generic: add macro for BAREBOX_CLK_TABLE
Sebastian Hesselbarth
sebastian.hesselbarth at gmail.com
Sat Nov 9 08:24:17 EST 2013
This adds a macro for linker scripts to place DT clock provider table.
While at it, also add ALIGN(8) to DTB macro and fix a whitespace issue.
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth at gmail.com>
---
Cc: barebox at lists.infradead.org
---
include/asm-generic/barebox.lds.h | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/include/asm-generic/barebox.lds.h b/include/asm-generic/barebox.lds.h
index 4754779..6d3a69e 100644
--- a/include/asm-generic/barebox.lds.h
+++ b/include/asm-generic/barebox.lds.h
@@ -41,9 +41,16 @@
#define BAREBOX_MAGICVARS KEEP(*(SORT_BY_NAME(.barebox_magicvar*)))
+#define BAREBOX_CLK_TABLE() \
+ . = ALIGN(8); \
+ __clk_of_table_start = .; \
+ KEEP(*(.__clk_of_table_*)); \
+ __clk_of_table_end = .;
+
#define BAREBOX_DTB() \
+ . = ALIGN(8); \
__dtb_start = .; \
- KEEP(*(.dtb.rodata.*)); \
+ KEEP(*(.dtb.rodata.*)); \
__dtb_end = .;
#if defined(CONFIG_ARCH_BAREBOX_MAX_BARE_INIT_SIZE) && \
--
1.8.4.rc3
More information about the barebox
mailing list