u-boot/arch/arm/include/asm/arch-sunxi
Andre Przywara 192c5c9e51 sunxi: sun9i: make more clock functions SPL only
In clock_sun9i.c, responsible for (mostly early) clock setup on the
Allwinner A80 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, and
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. Move some functions around, to group all SPL-only function within
one #ifdef guard. Some functions were exported, but never used outside
of this file, so remove their prototypes from the header file and mark
them as static.

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>
2024-04-22 01:12:26 +01:00
..
boot0.h sunxi: refactor serial base addresses to avoid asm/arch/cpu.h 2023-10-22 23:41:52 +01:00
clock.h sunxi: refactor serial base addresses to avoid asm/arch/cpu.h 2023-10-22 23:41:52 +01:00
clock_sun4i.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
clock_sun6i.h ARM: sunxi: Add clock and uart to sunxi headers 2022-02-04 00:09:57 +00:00
clock_sun8i_a83t.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
clock_sun9i.h sunxi: sun9i: make more clock functions SPL only 2024-04-22 01:12:26 +01:00
clock_sun50i_h6.h sunxi: add Allwinner R528/T113 SoC support 2023-10-22 23:41:52 +01:00
cpu.h sunxi: introduce NCAT2 generation model 2023-10-22 23:41:46 +01:00
cpu_sun4i.h sunxi: sun4i: remove unneeded base addresses from header 2024-01-29 01:18:52 +00:00
cpu_sun9i.h sunxi: sun9i: remove unneeded base addresses from header 2024-01-29 01:18:52 +00:00
cpu_sun50i_h6.h sunxi: sun50i-h6: remove unneeded base addresses from header 2024-01-29 01:18:52 +00:00
cpu_sunxi_ncat2.h sunxi: refactor serial base addresses to avoid asm/arch/cpu.h 2023-10-22 23:41:52 +01:00
display.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
display2.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dma.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dma_sun4i.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dram.h sunxi: reorganize mctl_mem_matches_* functions 2024-03-05 01:16:44 +00:00
dram_sun4i.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dram_sun6i.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
dram_sun8i_a23.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dram_sun8i_a33.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
dram_sun8i_a83t.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
dram_sun9i.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
dram_sun50i_h6.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
dram_sun50i_h616.h sunxi: H616: add LPDDR4 DRAM support 2023-11-12 18:04:32 +00:00
dram_suniv.h sunxi: Add F1C100s DRAM initial support 2022-02-04 00:09:57 +00:00
dram_sunxi_dw.h sunxi: support asymmetric dual rank DRAM on A64/R40 2021-04-16 01:12:58 +01:00
gtbus.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
gtbus_sun9i.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
i2c.h global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
lcdc.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mmc.h sunxi: mmc: Move header to the driver directory 2023-11-12 16:45:08 +00:00
p2wi.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pmic_bus.h sunxi: Fix typo in include guard 2023-06-07 22:45:02 +01:00
prcm.h sunxi: introduce NCAT2 generation model 2023-10-22 23:41:46 +01:00
prcm_sun6i.h sunxi: prcm: Add memory map for H6 like SoCs 2021-01-25 21:52:00 +00:00
prcm_sun50i.h sunxi: prcm: Add a few registers 2022-04-04 23:24:17 +01:00
pwm.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
rsb.h arm: Don't include common.h in header files 2020-05-18 14:54:24 -04:00
serial.h sunxi: refactor serial base addresses to avoid asm/arch/cpu.h 2023-10-22 23:41:52 +01:00
spl.h sunxi: Support SPL in both eGON and TOC0 images 2022-04-04 23:24:17 +01:00
sys_proto.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
timer.h sunxi: introduce NCAT2 generation model 2023-10-22 23:41:46 +01:00
tve.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
tzpc.h sunxi: move #ifdef guards around tzpc_init() to header file 2024-04-22 01:12:25 +01:00
watchdog.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00