Skip to content

sunxi: PSCI support for H3

Jens Kuske u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 4 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 4 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/4] sunxi: PSCI support for H3

Hi Chen-Yu,

Quoted 5 lines · Chen-Yu Tsai

Hi everyone,

This series enables PSCI support for the H3. Like other Allwinner SoCs, the implementation only supports PSCI 0.1, specifically only secondary CPU boot/hotplug.

Thanks, the patches look good to me. I've also tested them on the Orange Pi Plus, works as expected.

Jens

Quoted 38 lines

Patch 1 supports the SMTA (previously called TZPC) TrustZone hardware on H3. This controls non-secure access to some important hardware blocks.

Patch 2 supports the security switch in H3's CCU. This is H3 only. No other SoCs have this feature.

Patch 3 supports H3 using sun6i PSCI implementation. H3 uses the same power sequence as sun6i, including the power clamps. This is shown in Allwinner's SDK, and confirmed / tested by Siarhei.

Patch 4 enables PSCI support for the H3 in Kconfig.

I've only tested booting HYP/SMP on my Orange Pi PC. Hotplugging was not tested, but should work.

Regards
ChenYu

Chen-Yu Tsai (4):
sunxi: Support Secure Memory Touch Arbiter (SMTA) in sun8i H3
sunxi: Support H3 CCU security switches
sunxi: Support PSCI ops on Allwinner H3
sunxi: Enable booting non-secure and virtualization for H3

 arch/arm/cpu/armv7/sunxi/Makefile             |  1 +
 arch/arm/cpu/armv7/sunxi/clock.c              |  5 +++++
 arch/arm/cpu/armv7/sunxi/clock_sun6i.c        | 13 +++++++++++++
 arch/arm/cpu/armv7/sunxi/psci_sun6i.S         |  4 ++--
 arch/arm/cpu/armv7/sunxi/tzpc.c               | 11 ++++++++++-
 arch/arm/include/asm/arch-sunxi/clock.h       |  1 +
 arch/arm/include/asm/arch-sunxi/clock_sun6i.h |  7 +++++++
 arch/arm/include/asm/arch-sunxi/tzpc.h        | 13 ++++++++++++-
 board/sunxi/Kconfig                           |  3 +++
 9 files changed, 54 insertions(+), 4 deletions(-)