]> git.ipfire.org Git - thirdparty/u-boot.git/commit
sunxi: sun8i_a83t: make more clock functions SPL only
authorAndre Przywara <andre.przywara@arm.com>
Thu, 7 Dec 2023 15:42:47 +0000 (15:42 +0000)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 22 Apr 2024 00:12:26 +0000 (01:12 +0100)
commit25f07d2cc3c81763b2bf112a7edd24049554370d
tree481e8a776b04242e580efe7a08cf1fc763b35313
parentc209a7163a37196486d44c0529544953ac4e4db2
sunxi: sun8i_a83t: make more clock functions SPL only

In clock_sun8i_a83t.c, responsible for (mostly early) clock setup on the
Allwinner A83T SoC, many functions are only needed by the SPL, and are
thus already guarded by CONFIG_SPL_BUILD.

Over the years drivers like for the UART or I2C were converted to DM,
so they care about clock setup themselves now, by using a proper DM clock
driver.

This means those devices need the clock setup functions here for the SPL
only. Include those functions into the existing CONFIG_SPL_BUILD guards,
so they are compiled for the SPL only.

This avoids unnecessary code in U-Boot proper and helps further
refactoring. Add some comments on the way to help understanding of the
file.

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