]> git.dujemihanovic.xyz Git - u-boot.git/commit
sunxi: psci: stop modeling register layout with C structs
authorSam Edwards <cfsworks@gmail.com>
Thu, 12 Oct 2023 01:47:55 +0000 (19:47 -0600)
committerAndre Przywara <andre.przywara@arm.com>
Sun, 22 Oct 2023 22:41:52 +0000 (23:41 +0100)
commitb1fbc20e769e7724b0d8d5a14e47f5cf541b31a8
tree72e722f7a37bf20793d06d1e85ddd75170f35f90
parent3f31c6f1039b117d0276fe047c1383d17ac1ac84
sunxi: psci: stop modeling register layout with C structs

Since the sunxi support nowadays generally prefers #defined register
offsets instead of modeling register layouts using C structs, now is a
good time to do this for PSCI as well. This patch moves away from using
the structs `sunxi_cpucfg_reg` and `sunxi_prcm_reg` in psci.c.

The former struct and its associated header file existed only to support
PSCI code, so also delete them altogether.

Signed-off-by: Sam Edwards <CFSworks@gmail.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/cpu/armv7/sunxi/psci.c
arch/arm/include/asm/arch-sunxi/cpucfg.h [deleted file]