]> git.sur5r.net Git - u-boot/commit
sunxi: psci: Move entry address setting to separate function
authorChen-Yu Tsai <wens@csie.org>
Wed, 7 Jun 2017 07:11:49 +0000 (15:11 +0800)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 12 Jun 2017 10:11:02 +0000 (15:41 +0530)
commit3474827294ca188446c8e52decd81a0908fd65e2
tree25c48b1796d358073661fa2e571e5424159e405b
parent84580628b8e11c299d9a3f6b35c7ef917ab31290
sunxi: psci: Move entry address setting to separate function

Currently we set the entry address in the psci_cpu_on function.
However R40 has a different register for this. This resulted in
an #ifdef / #else block in psci_cpu_on, which we avoided having
in the first place.

Move this part into a separate function, defined differently for
the R40 as opposed to the other single cluster platforms.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
arch/arm/cpu/armv7/sunxi/psci.c