]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: omap3: Compile lowlevel_init() function only when it is used
authorPali Rohár <pali@kernel.org>
Sun, 7 Feb 2021 13:50:12 +0000 (14:50 +0100)
committerMarek Vasut <marex@denx.de>
Wed, 3 Mar 2021 03:12:46 +0000 (04:12 +0100)
commit628680a99f21f6f60415d9e6d0e4b6adfb873c62
treedff593cae9c813f61aaa898a569680f9515680b9
parent7f98575b7ba8ee941c5f2875ca01ae1f08bfae35
arm: omap3: Compile lowlevel_init() function only when it is used

Function lowlevel_init() is called only from cpu_init_crit() and this
function is wrapped into #if .. #endif section. So compile also
lowlevel_init() function under same #if condition.

Function cpy_clk_code() uses lowlevel_init symbol to get address where
go_to_speed code ends. As this symbol is not available anymore when
compiling with CONFIG_SKIP_LOWLEVEL_INIT, defines a new label
go_to_speed_end at the place where go_to_speed code ends.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Acked-by: Pavel Machek <pavel@ucw.cz>
arch/arm/mach-omap2/omap3/lowlevel_init.S