summaryrefslogtreecommitdiff
path: root/drivers/ddr/imx/phy/ddrphy_train.c
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2023-12-07 16:07:05 +0000
committerAndre Przywara <andre.przywara@arm.com>2024-04-22 01:12:26 +0100
commitc209a7163a37196486d44c0529544953ac4e4db2 (patch)
tree5c2a43f5d1ef6d2bca473ea6abcc1b87e7782289 /drivers/ddr/imx/phy/ddrphy_train.c
parent58bf08999962f27d8dbdd3ae3171b2ab59358b9c (diff)
sunxi: sun50i_h6: make more clock functions SPL only
In clock_sun50i_h6.c, responsible for (mostly early) clock setup on newer generation Allwinner SoCs, 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. By moving the clock_get_pll6() function to the end of the file, all SPL-only clocks can be contained within one #ifdef guard. 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>
Diffstat (limited to 'drivers/ddr/imx/phy/ddrphy_train.c')
0 files changed, 0 insertions, 0 deletions