nios2: convert do_reset to use dm cpu data
PATCH 1/1 nios2: convert do_reset to use dm cpu data
Convert do_reset to use dm cpu data.
Signed-off-by Thomas Chou <[email protected]>
--- arch/nios2/cpu/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/nios2/cpu/cpu.c +1 -1
@@ -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 ; }
Signature · 1 line
2.1.4
PATCH 1/1 nios2: convert do_reset to use dm cpu data
Hi Thomas,
Quoted 6 lines · Thomas Chou
Convert
do_resetto use dm cpu data.Signed-off-by Thomas Chou <[email protected]>--- arch/nios2/cpu/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Simon Glass <[email protected]>
BTW if you are interested, you can implement a reset driver UCLASS_RESET.
Regards,
Simon
PATCH 1/1 nios2: convert do_reset to use dm cpu data
In reply to Thomas ChouQuoted 7 lines · Thomas Chou
Convert
do_resetto use dm cpu data.Signed-off-by Thomas Chou <[email protected]>--- arch/nios2/cpu/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to u-boot-nios.
Quoted 14 lines
arch/nios2/cpu/cpu.c +1
-1@@ -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 ; }