summaryrefslogtreecommitdiffstats
path: root/include/asm-generic
diff options
context:
space:
mode:
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2013-11-09 14:24:17 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-11-11 09:26:59 +0100
commitcdab803eb51aa83b3c0eea8769b1c8c1853d779b (patch)
tree849cb219670ce87a37ea2cc8f675d05d79b3341e /include/asm-generic
parent7c1091bd5895204b109c5a79996aa9367692a78a (diff)
downloadbarebox-cdab803eb51aa83b3c0eea8769b1c8c1853d779b.tar.gz
barebox-cdab803eb51aa83b3c0eea8769b1c8c1853d779b.tar.xz
asm-generic: add macro for BAREBOX_CLK_TABLE
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@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/barebox.lds.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/asm-generic/barebox.lds.h b/include/asm-generic/barebox.lds.h
index 4754779005..6d3a69ef20 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) && \