arm64: zynqmp: Fix application loading on R5 core1
authorAshok Reddy Soma <ashok.reddy.soma@xilinx.com>
Thu, 15 Apr 2021 11:12:15 +0000 (05:12 -0600)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 23 Jun 2021 07:48:35 +0000 (09:48 +0200)
commitaee1ed87e71e4e66a5874c32e700ab076c3d3c26
treef7a86e8be275a316232481f7e2e0993d0bae1099
parente246dc49cffb63667b5ec9ba02f74d9edf09c3a2
arm64: zynqmp: Fix application loading on R5 core1

From U-Boot, loading application on RPU core 0 is fine but loading on
core 1 is not handled properly. Lock-step mode needs both the R5 cores
to be initialized and it is working fine. Whereas in SPLIT mode individual
R5 cores needs to be initialized as they need to execute differenet
applications. Handle both these lock-step and split modes by propagating
mode and RPU core number(4 for RPU0 and 5 for RPU1) for various functions
and by adding conditions in those functions.

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/mach-zynqmp/mp.c