]> git.dujemihanovic.xyz Git - u-boot.git/commit
sunxi: psci: refactor register access to separate functions
authorSam Edwards <cfsworks@gmail.com>
Thu, 12 Oct 2023 01:47:54 +0000 (19:47 -0600)
committerAndre Przywara <andre.przywara@arm.com>
Sun, 22 Oct 2023 22:41:52 +0000 (23:41 +0100)
commit3f31c6f1039b117d0276fe047c1383d17ac1ac84
tree3d4b83f9e2ce9ef42ef3bc8043f49dfa410fcd15
parentf9670d7b0b7f2d2205fdf10f11f35e327cd43033
sunxi: psci: refactor register access to separate functions

This is to prepare for R528, which does not have the typical
"CPUCFG" block; it has a "CPUX" block which provides these
same functions but is organized differently.

Moving the hardware-access bits to their own functions separates the
logic from the hardware so we can reuse the same logic.

Signed-off-by: Sam Edwards <CFSworks@gmail.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/cpu/armv7/sunxi/psci.c