u-boot/arch/arm/mach-zynqmp
Neal Frager 67bdaa0165 arm64: zynqmp: Fix split mode reset functionality
This patch fixes two issues in the set_r5_reset function.

1. When in split mode, the lpd_amba_rst bit should only be set when
both r5 cpu cores are in reset. Otherwise, if one r5 core is still
running, setting the lpd_amba_rst bit will cause an error for the
running core. The set_r5_reset function has been modified to check
if the other r5 core is still running before setting the lpd_amba_rst
bit.

2. The cpu_disable function was always assuming that the r5 cores
are in split mode when resetting either core 4 or 5. This is
incorrect for lockstep functionality. This patch adds a function
check_r5_mode to handle the cpu_disable function correctly for
the r5 cores by checking the mode and handling the reset appropriately.

Signed-off-by: Neal Frager <neal.frager@amd.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/d99cbd7f2394ac055ef27457298f554ff0747ba7.1651648344.git.michal.simek@amd.com
2022-05-18 13:17:18 +02:00
..
include/mach arm64: zynqmp: Fix debug uart initialization 2022-02-21 13:20:29 +01:00
clk.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
cpu.c soc: xilinx: zynqmp: Add soc_xilinx_zynqmp driver 2021-08-26 08:08:11 +02:00
ecc_spl_init.c zynqmp: spl: support DRAM ECC initialization 2021-06-23 09:48:35 +02:00
handoff.c zynqmp: Pass bl32 entry to TF-A via xilinx handoff structure 2021-06-23 09:48:35 +02:00
Kconfig arm64: zynqmp: Fix dependencies around ZYNQMP_PSU_INIT_ENABLED 2022-02-21 13:20:19 +01:00
Makefile arm64: zynqmp: Build psu_spl_init for SPL all the time 2022-02-21 13:20:06 +01:00
mkimage_fit_atf.sh xilinx: zynqmp: Update descriptions for u-boot.its 2021-08-26 08:14:43 +02:00
mp.c arm64: zynqmp: Fix split mode reset functionality 2022-05-18 13:17:18 +02:00
psu_spl_init.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
spl.c arm64: zynqmp: Fix debug uart initialization 2022-02-21 13:20:29 +01:00