[U-Boot] [PATCH 04/12] sunxi: Implement reset_cpu

2014-05-30 Thread Hans de Goede
There is no way to reset the cpu, so use the watchdog for this. Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/cpu/armv7/sunxi/board.c| 7 +++ arch/arm/include/asm/arch-sunxi/timer.h | 5 + 2 files changed, 12 insertions(+) diff --git

Re: [U-Boot] [PATCH 04/12] sunxi: Implement reset_cpu

2014-05-30 Thread Ian Campbell
On Fri, 2014-05-30 at 11:06 +0200, Hans de Goede wrote: There is no way to reset the cpu, so use the watchdog for this. Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Ian Campbell i...@hellion.org.uk One nit +#define WDT_CTRL_RESTART(0x1 0) +#define WDT_CTRL_KEY

Re: [U-Boot] [PATCH 04/12] sunxi: Implement reset_cpu

2014-05-30 Thread Hans de Goede
Hi, On 05/30/2014 11:48 AM, Ian Campbell wrote: On Fri, 2014-05-30 at 11:06 +0200, Hans de Goede wrote: There is no way to reset the cpu, so use the watchdog for this. Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Ian Campbell i...@hellion.org.uk One nit +#define