Re: [U-Boot] [PATCH v2 03/14] MIPS: allow using generic sysreset drivers

2017-04-16 Thread Simon Glass
On 15 April 2017 at 16:03, Álvaro Fernández Rojas  wrote:
> Avoid duplicating do_reset definition if SYSRESET is enabled for MIPS
>
> Signed-off-by: Álvaro Fernández Rojas 
> ---
>  v2: no changes
>
>  arch/mips/cpu/cpu.c | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Simon Glass 
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 03/14] MIPS: allow using generic sysreset drivers

2017-04-15 Thread Álvaro Fernández Rojas
Avoid duplicating do_reset definition if SYSRESET is enabled for MIPS

Signed-off-by: Álvaro Fernández Rojas 
---
 v2: no changes

 arch/mips/cpu/cpu.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/mips/cpu/cpu.c b/arch/mips/cpu/cpu.c
index 1b919ed..55e6498 100644
--- a/arch/mips/cpu/cpu.c
+++ b/arch/mips/cpu/cpu.c
@@ -12,6 +12,7 @@
 #include 
 #include 
 
+#ifndef CONFIG_SYSRESET
 void __weak _machine_restart(void)
 {
fprintf(stderr, "*** reset failed ***\n");
@@ -26,6 +27,7 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * 
const argv[])
 
return 0;
 }
+#endif
 
 void write_one_tlb(int index, u32 pagemask, u32 hi, u32 low0, u32 low1)
 {
-- 
2.1.4

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot