public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ian Campbell <ijc@hellion.org.uk>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/3] ARM: sunxi: Fix reset command on sun6i/sun8i
Date: Tue, 21 Oct 2014 19:51:15 +0100	[thread overview]
Message-ID: <1413917475.20604.32.camel@hellion.org.uk> (raw)
In-Reply-To: <CAGb2v66gA_-DUSO_1w7CK7dtZSD_sbccm0i6Q2xyf7ydv7Q35w@mail.gmail.com>

On Sun, 2014-10-12 at 10:40 +0800, Chen-Yu Tsai wrote:
> On Sat, Oct 11, 2014 at 11:33 PM, Ian Campbell <ijc@hellion.org.uk> 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;
> >> +
> >> +     /* Set the watchdog for its shortest interval (.5s) and wait */
> >> +     writel(WDT_CFG_RESET, &wdog->cfg);
> >> +     writel(WDT_MODE_EN, &wdog->mode);
> >> +     writel(WDT_CTRL_KEY | WDT_CTRL_RESTART, &wdog->ctl);
> >
> > That's annoyingly close to the 4/5/7i version, but not quite close
> > enough to allow any meaningful sharing :-/
> 
> I suppose it is possible to share using clrsetbits...

I think it probably isn't worth it.

> 
> >> +     while (1) {
> >> +             /* sun5i sometimes gets stuck without this */
> >
> > Is this not therefore unnecessary on 6i/8i?
> 
> The kernel restart driver uses this.
> But Allwinner's original code does not.

Unless it is needed in practice lets just leave it out.

Ian.

  reply	other threads:[~2014-10-21 18:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-04 12:37 [U-Boot] [PATCH 0/3] ARM: sunxi: Fix reset support on sun6i/sun8i Chen-Yu Tsai
2014-10-04 12:37 ` [U-Boot] [PATCH 1/3] ARM: sunxi: Move watchdog register definitions to separate file Chen-Yu Tsai
2014-10-11 15:30   ` Ian Campbell
2014-10-04 12:37 ` [U-Boot] [PATCH 2/3] ARM: sunxi: Add sun6i/sun8i timer block register definition Chen-Yu Tsai
2014-10-11 15:31   ` Ian Campbell
2014-10-04 12:37 ` [U-Boot] [PATCH 3/3] ARM: sunxi: Fix reset command on sun6i/sun8i Chen-Yu Tsai
2014-10-11 15:33   ` Ian Campbell
2014-10-12  2:40     ` Chen-Yu Tsai
2014-10-21 18:51       ` Ian Campbell [this message]
2014-10-04 15:02 ` [U-Boot] [linux-sunxi] [PATCH 0/3] ARM: sunxi: Fix reset support " Julian Calaby
2014-10-04 15:12   ` Chen-Yu Tsai
2014-10-05  1:14     ` Julian Calaby

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1413917475.20604.32.camel@hellion.org.uk \
    --to=ijc@hellion.org.uk \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox