]> git.baikalelectronics.ru Git - uboot.git/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)
commit41dcdd6aaddbd2ad4e49da6745e503cd8f627fc3
tree25c48b1796d358073661fa2e571e5424159e405b
parent61b535faf22db89ce0829c532cb7aa38286fc62b
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