summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2015-05-22 13:26:33 +0200
committerMichal Simek <michal.simek@xilinx.com>2015-07-28 11:56:20 +0200
commitfb101168faef4dcc46243b38429193bc7c416885 (patch)
treeaf2790ba1933c92644bdd30df386dab231356c09
parentb0d18beedb83cebd9290a27794da93cdea3529c5 (diff)
downloadu-boot-imx-fb101168faef4dcc46243b38429193bc7c416885.zip
u-boot-imx-fb101168faef4dcc46243b38429193bc7c416885.tar.gz
u-boot-imx-fb101168faef4dcc46243b38429193bc7c416885.tar.bz2
zynqmp: mp: Simplify set_r5_start handling
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>
-rw-r--r--arch/arm/cpu/armv8/zynqmp/mp.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/arm/cpu/armv8/zynqmp/mp.c b/arch/arm/cpu/armv8/zynqmp/mp.c
index 17e32a7..dcb80b5 100644
--- a/arch/arm/cpu/armv8/zynqmp/mp.c
+++ b/arch/arm/cpu/armv8/zynqmp/mp.c
@@ -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);