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 <[email protected]>
---
Cc: [email protected]
---
 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


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to