]> git.dujemihanovic.xyz Git - u-boot.git/commit
sunxi: compile clock.c for SPL only
authorAndre Przywara <andre.przywara@arm.com>
Thu, 7 Dec 2023 16:06:04 +0000 (16:06 +0000)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 22 Apr 2024 00:12:25 +0000 (01:12 +0100)
commit8cb3c49454ef6d72a20bb9c96f7ae841591ed33c
tree7b0dad12b363db2031c62e63dd9419ceb4239a10
parent1a6828d0c54da2267cfc2a8abe7c51226f1cb80f
sunxi: compile clock.c for SPL only

With the clock_twi_onoff() function now being called only from the SPL,
the whole clock.c file in arch/arm/mach-sunxi is needed by SPL code
only.

Remove the redundant #ifdef from the clock_init() function, actually
this function was already only called from the SPL.
Then adjust the Makefile to compile clock.c only with CONFIG_SPL_BUILD
defined.

This avoids unnecessary code in U-Boot proper and allows further
refactoring and code-split between the SPL and U-Boot proper.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/mach-sunxi/Makefile
arch/arm/mach-sunxi/clock.c