]> git.dujemihanovic.xyz Git - u-boot.git/commit
sunxi: refactor serial base addresses to avoid asm/arch/cpu.h
authorAndre Przywara <andre.przywara@arm.com>
Sat, 2 Jul 2022 23:14:24 +0000 (00:14 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Sun, 22 Oct 2023 22:41:52 +0000 (23:41 +0100)
commitbeeace9ba1689e6eaba8d286f885a5f0e973b26e
tree8f2ea3aab963a09a96982f86128089a986db7c6f
parent5b7c58fbba568808791b636e4ee23e2348e58c0b
sunxi: refactor serial base addresses to avoid asm/arch/cpu.h

At the moment we have each SoC's memory map defined in its own cpu.h,
which is included in include/configs/sunxi_common.h. This will be a
problem with the introduction of Allwinner RISC-V support.

Remove the inclusion of that header file from the common config header,
instead move the required serial base addresses (for the SPL) into a
separate header file. Then include the original cpu.h file only where
we really need it, which is only under arch/arm now.

This disentangles the architecture specific header files from the
generic code.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
12 files changed:
arch/arm/cpu/armv7/sunxi/sram.c
arch/arm/cpu/armv8/fel_utils.S
arch/arm/include/asm/arch-sunxi/boot0.h
arch/arm/include/asm/arch-sunxi/clock.h
arch/arm/include/asm/arch-sunxi/cpu_sun4i.h
arch/arm/include/asm/arch-sunxi/cpu_sun50i_h6.h
arch/arm/include/asm/arch-sunxi/cpu_sun9i.h
arch/arm/include/asm/arch-sunxi/cpu_sunxi_ncat2.h
arch/arm/include/asm/arch-sunxi/serial.h [new file with mode: 0644]
arch/arm/mach-sunxi/gtbus_sun9i.c
arch/arm/mach-sunxi/timer.c
include/configs/sunxi-common.h