sunxi: H6: dram: remove usage of struct sunxi_ccm_reg
authorAndre Przywara <andre.przywara@arm.com>
Sat, 25 Jan 2025 17:56:14 +0000 (17:56 +0000)
committerTom Rini <trini@konsulko.com>
Mon, 28 Apr 2025 18:45:44 +0000 (12:45 -0600)
commitc626eff09aea260989ea92644c7ac8016168c7a2
tree4dddb24d867a6576d69270e4c5124b66e1fc4b41
parenta8c232c43071ff6ae1e1b1ff314fb3562b307ba8
sunxi: H6: dram: remove usage of struct sunxi_ccm_reg

The Allwinner H6 DRAM initialisation code uses a complex C struct,
modelling the clock device's register frame. For this SoC, the struct
contains 127 registers, but the DRAM code only uses four of them.

Since we want to get rid of this struct, drop the usage of the struct in
the H6 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 clock register struct.

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