Hi,
On 03/24/2014 12:53 AM, Henrik Nordström wrote:
> sön 2014-03-16 klockan 14:53 +0100 skrev Hans de Goede:
>> void reset_cpu(ulong addr)
>> {
>> +static const struct sunxi_wdog *wdog =
>> + &((struct sunxi_timer_reg *)SUNXI_TIMER_BASE)->wdog;
>> +
>> +/* Set the watchdog f
sön 2014-03-16 klockan 18:38 + skrev Ian Campbell:
> Not sure why cmd_watchdog.c is sunxi, seems like in principal it could
> be generic.
In principal it could, but there is no common API for setting the
watchdog timer, and no common API for disabling the watchdog once armed.
Regards
Henrik
sön 2014-03-16 klockan 14:53 +0100 skrev Hans de Goede:
> void reset_cpu(ulong addr)
> {
> + static const struct sunxi_wdog *wdog =
> + &((struct sunxi_timer_reg *)SUNXI_TIMER_BASE)->wdog;
> +
> + /* Set the watchdog for its shortest interval (.5s) and wait */
> + writel(
On Sun, 2014-03-16 at 14:53 +0100, Hans de Goede wrote:
> There is no way to reset the cpu, so use the watchdog for this.
The sunxi.git tree does this by calling watchdog_set(0). I think it
would be better to introduce the generic watchdog support and the add
this a patch to use it for reset. Unle
4 matches
Mail list logo