summaryrefslogtreecommitdiffstats
path: root/arch/nios2
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2015-10-09 09:43:52 +0800
committerThomas Chou <thomas@wytron.com.tw>2015-10-23 07:37:20 +0800
commit121e36dacdfa0ef68414effea4d758e8fc2f3b60 (patch)
treefe23e41153aa2296a4ee9a26a5df6765d5cd0d75 /arch/nios2
parent6368c3e75fdeaf5e183acc704409b3b5b6d682b5 (diff)
downloadblackbird-obmc-uboot-121e36dacdfa0ef68414effea4d758e8fc2f3b60.tar.gz
blackbird-obmc-uboot-121e36dacdfa0ef68414effea4d758e8fc2f3b60.zip
nios2: convert do_reset to use dm cpu data
Convert do_reset to use dm cpu data. Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/nios2')
-rw-r--r--arch/nios2/cpu/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nios2/cpu/cpu.c b/arch/nios2/cpu/cpu.c
index d7ff290fd7..0e71b43842 100644
--- a/arch/nios2/cpu/cpu.c
+++ b/arch/nios2/cpu/cpu.c
@@ -25,7 +25,7 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
disable_interrupts();
/* indirect call to go beyond 256MB limitation of toolchain */
- nios2_callr(CONFIG_SYS_RESET_ADDR);
+ nios2_callr(gd->arch.reset_addr);
return 0;
}
OpenPOWER on IntegriCloud