[PATCH] ARM: add Kconfig option for PSCI 0.1

28 kali dilihat
Langsung ke pesan pertama yang belum dibaca

Icenowy Zheng

belum dibaca,
31 Jul 2020, 14.57.1231/07/20
kepadaTom Rini, Jagan Teki, Maxime Ripard, u-b...@lists.denx.de, linux...@googlegroups.com, Icenowy Zheng
We still have some platforms that only implements functionalities in
PSCI 0.1 (e.g. Allwinner ARMv7 SoCs).

Add a Kconfig option for exporting only PSCI 0.1. The code to export
PSCI 0.1 is still available and gets activated by this patch.

In addition, default ARCH_SUNXI U-Boot PSCI implementation to export
PSCI 0.1, to fix poweroff/reboot regression on Allwinner multi-core
ARMv7 SoCs.

Signed-off-by: Icenowy Zheng <ice...@aosc.io>
---
arch/arm/cpu/armv7/Kconfig | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/arch/arm/cpu/armv7/Kconfig b/arch/arm/cpu/armv7/Kconfig
index 8eee801dce..60bb0a9e1e 100644
--- a/arch/arm/cpu/armv7/Kconfig
+++ b/arch/arm/cpu/armv7/Kconfig
@@ -44,6 +44,7 @@ config ARMV7_PSCI
choice
prompt "Supported PSCI version"
depends on ARMV7_PSCI
+ default ARMV7_PSCI_0_1 if ARCH_SUNXI
default ARMV7_PSCI_1_0
help
Select the supported PSCI version.
@@ -53,6 +54,9 @@ config ARMV7_PSCI_1_0

config ARMV7_PSCI_0_2
bool "PSCI V0.2"
+
+config ARMV7_PSCI_0_1
+ bool "PSCI V0.1"
endchoice

config ARMV7_PSCI_NR_CPUS
--
2.27.0

Tom Rini

belum dibaca,
5 Agu 2020, 16.28.5005/08/20
kepadaIcenowy Zheng, Jagan Teki, Maxime Ripard, u-b...@lists.denx.de, linux...@googlegroups.com
On Sat, Aug 01, 2020 at 02:56:45AM +0800, Icenowy Zheng wrote:

> We still have some platforms that only implements functionalities in
> PSCI 0.1 (e.g. Allwinner ARMv7 SoCs).
>
> Add a Kconfig option for exporting only PSCI 0.1. The code to export
> PSCI 0.1 is still available and gets activated by this patch.
>
> In addition, default ARCH_SUNXI U-Boot PSCI implementation to export
> PSCI 0.1, to fix poweroff/reboot regression on Allwinner multi-core
> ARMv7 SoCs.
>
> Signed-off-by: Icenowy Zheng <ice...@aosc.io>

Applied to u-boot/master, thanks!

--
Tom
signature.asc
Balas ke semua
Balas ke penulis
Teruskan
0 pesan baru