Re: [U-Boot] [PATCH 3/3] ARM: sunxi: Fix reset command on sun6i/sun8i

2014-10-21 Thread Ian Campbell
On Sun, 2014-10-12 at 10:40 +0800, Chen-Yu Tsai wrote: > On Sat, Oct 11, 2014 at 11:33 PM, Ian Campbell wrote: > > On Sat, 2014-10-04 at 20:37 +0800, Chen-Yu Tsai wrote: > >> +#else /* CONFIG_SUN6I || CONFIG_SUN8I || .. */ > >> + static const struct sunxi_wdog *wdog = > >> + ((str

Re: [U-Boot] [PATCH 3/3] ARM: sunxi: Fix reset command on sun6i/sun8i

2014-10-11 Thread Chen-Yu Tsai
On Sat, Oct 11, 2014 at 11:33 PM, Ian Campbell wrote: > On Sat, 2014-10-04 at 20:37 +0800, Chen-Yu Tsai wrote: >> +#else /* CONFIG_SUN6I || CONFIG_SUN8I || .. */ >> + static const struct sunxi_wdog *wdog = >> + ((struct sunxi_timer_reg *)SUNXI_TIMER_BASE)->wdog; >> + >> + /* S

Re: [U-Boot] [PATCH 3/3] ARM: sunxi: Fix reset command on sun6i/sun8i

2014-10-11 Thread Ian Campbell
On Sat, 2014-10-04 at 20:37 +0800, Chen-Yu Tsai wrote: > +#else /* CONFIG_SUN6I || CONFIG_SUN8I || .. */ > + static const struct sunxi_wdog *wdog = > + ((struct sunxi_timer_reg *)SUNXI_TIMER_BASE)->wdog; > + > + /* Set the watchdog for its shortest interval (.5s) and wait */ >

[U-Boot] [PATCH 3/3] ARM: sunxi: Fix reset command on sun6i/sun8i

2014-10-04 Thread Chen-Yu Tsai
The watchdog on sun6i/sun8i has a different layout. Add the new layout and fix up the setup functions so that reset works. Signed-off-by: Chen-Yu Tsai --- arch/arm/cpu/armv7/sunxi/board.c | 15 +++ arch/arm/include/asm/arch-sunxi/watchdog.h | 20 2 fil