9
0
Fork 0

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>
This commit is contained in:
Sebastian Hesselbarth 2013-11-09 14:24:17 +01:00 committed by Sascha Hauer
parent 7c1091bd58
commit cdab803eb5
1 changed files with 8 additions and 1 deletions

View File

@ -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) && \