sunxi: H6/H616: dram: remove usage of struct sunxi_prcm_reg
authorAndre Przywara <andre.przywara@arm.com>
Sat, 25 Jan 2025 23:49:27 +0000 (23:49 +0000)
committerTom Rini <trini@konsulko.com>
Mon, 28 Apr 2025 18:45:44 +0000 (12:45 -0600)
commit3389c5729766ce0c7d7b64cce0676fe5c963fc0b
treedb94eb7a737a09882ccb3adbff3906d6e66b30a6
parent90b74b3f51a9637c6fa226d0fdf162b6e94a3ecb
sunxi: H6/H616: dram: remove usage of struct sunxi_prcm_reg

The Allwinner H6 and H616 DRAM initialisation code uses a complex C
struct, modelling the PRCM clock register frame. For those SoCs, this
struct contains 20 registers, but the DRAM code only uses two of them.

Since we want to get rid of this struct, drop the usage of the struct in
the H6 and H616 DRAM code, by using #define'd register names and their
offset, and then adding those names to the base pointer.

This removes one more user of the PRCM clock register struct.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/include/asm/arch-sunxi/prcm_sun50i.h
arch/arm/mach-sunxi/dram_sun50i_h6.c
arch/arm/mach-sunxi/dram_sun50i_h616.c