sunxi: H616: dram: remove usage of struct sunxi_ccm_reg
authorAndre Przywara <andre.przywara@arm.com>
Fri, 24 Jan 2025 23:43:22 +0000 (23:43 +0000)
committerTom Rini <trini@konsulko.com>
Mon, 28 Apr 2025 18:45:44 +0000 (12:45 -0600)
commita8c232c43071ff6ae1e1b1ff314fb3562b307ba8
tree8e18b030e563c8bee3fde60977ea6371c645f814
parent0527f30672482cb93a7a571bad4ecf5bc147ee49
sunxi: H616: dram: remove usage of struct sunxi_ccm_reg

The Allwinner H616 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 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 clock register struct.

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