]> git.sur5r.net Git - u-boot/commitdiff
zynqmp: mp: Simplify set_r5_start handling
authorMichal Simek <michal.simek@xilinx.com>
Fri, 22 May 2015 11:26:33 +0000 (13:26 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 28 Jul 2015 09:56:20 +0000 (11:56 +0200)
Pass directly boot_addr which is LOVEC (0) or HIVEC (0xffff0000).
No reason to use magic values 0 and 1.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/cpu/armv8/zynqmp/mp.c

index 17e32a7b7ce8426e9895938b6772de5388e55c72..dcb80b522ead5d0e711190eb6cfd582ffe6411ab 100644 (file)
@@ -216,12 +216,7 @@ int cpu_release(int nr, int argc, char * const argv[])
                        printf("R5 lockstep mode\n");
                        set_r5_tcm_mode(LOCK);
                        set_r5_halt_mode(HALT, LOCK);
-
-                       if (boot_addr == 0)
-                               set_r5_start(0);
-                       else
-                               set_r5_start(1);
-
+                       set_r5_start(boot_addr);
                        enable_clock_r5();
                        release_r5_reset(LOCK);
                        set_r5_halt_mode(RELEASE, LOCK);