* [U-Boot] [PATCH] nios2: convert do_reset to use dm cpu data
@ 2015-10-05 3:00 Thomas Chou
2015-10-06 14:18 ` Simon Glass
2015-10-13 13:14 ` Thomas Chou
0 siblings, 2 replies; 3+ messages in thread
From: Thomas Chou @ 2015-10-05 3:00 UTC (permalink / raw)
To: u-boot
Convert do_reset to use dm cpu data.
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
---
arch/nios2/cpu/cpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/nios2/cpu/cpu.c b/arch/nios2/cpu/cpu.c
index 106f0bf..229a07b 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;
}
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] nios2: convert do_reset to use dm cpu data
2015-10-05 3:00 [U-Boot] [PATCH] nios2: convert do_reset to use dm cpu data Thomas Chou
@ 2015-10-06 14:18 ` Simon Glass
2015-10-13 13:14 ` Thomas Chou
1 sibling, 0 replies; 3+ messages in thread
From: Simon Glass @ 2015-10-06 14:18 UTC (permalink / raw)
To: u-boot
Hi Thomas,
On 5 October 2015 at 04:00, Thomas Chou <thomas@wytron.com.tw> wrote:
> Convert do_reset to use dm cpu data.
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
> arch/nios2/cpu/cpu.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass <sjg@chromium.org>
BTW if you are interested, you can implement a reset driver UCLASS_RESET.
Regards,
Simon
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] nios2: convert do_reset to use dm cpu data
2015-10-05 3:00 [U-Boot] [PATCH] nios2: convert do_reset to use dm cpu data Thomas Chou
2015-10-06 14:18 ` Simon Glass
@ 2015-10-13 13:14 ` Thomas Chou
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Chou @ 2015-10-13 13:14 UTC (permalink / raw)
To: u-boot
On 10/05/2015 11:00 AM, Thomas Chou wrote:
> Convert do_reset to use dm cpu data.
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
> arch/nios2/cpu/cpu.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Applied to u-boot-nios.
> diff --git a/arch/nios2/cpu/cpu.c b/arch/nios2/cpu/cpu.c
> index 106f0bf..229a07b 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;
> }
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-10-13 13:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-05 3:00 [U-Boot] [PATCH] nios2: convert do_reset to use dm cpu data Thomas Chou
2015-10-06 14:18 ` Simon Glass
2015-10-13 13:14 ` Thomas Chou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox