SUPERH platform development
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH 1/2] ARM: shmobile: kzm9g-reference: Add restart callback
Date: Fri, 07 Nov 2014 13:53:31 +0000	[thread overview]
Message-ID: <545CCEDB.5090908@cogentembedded.com> (raw)
In-Reply-To: <1385428879-26849-2-git-send-email-laurent.pinchart+renesas@ideasonboard.com>

Hello.

On 11/7/2014 4:46 PM, Geert Uytterhoeven wrote:

> Port the sh73a0 restart handling from the kzm9g-legacy board code to the
> kzm9g-reference board code.

> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> Tested on kzm9g-reference
>
>   arch/arm/mach-shmobile/board-kzm9g-reference.c | 8 ++++++++
>   1 file changed, 8 insertions(+)

> diff --git a/arch/arm/mach-shmobile/board-kzm9g-reference.c b/arch/arm/mach-shmobile/board-kzm9g-reference.c
> index f2ef759b6e969cc8..2e82e44ab85258b7 100644
> --- a/arch/arm/mach-shmobile/board-kzm9g-reference.c
> +++ b/arch/arm/mach-shmobile/board-kzm9g-reference.c
> @@ -39,6 +39,13 @@ static void __init kzm_init(void)
>   #endif
>   }
>
> +#define RESCNT2 IOMEM(0xe6188020)
> +static void kzm9g_restart(enum reboot_mode mode, const char *cmd)
> +{
> +	/* Do soft power on reset */
> +	writel((1 << 31), RESCNT2);

    Inner () should not be needed.

[...]

WBR, Sergei


  parent reply	other threads:[~2014-11-07 13:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-26  1:21 [PATCH 1/2] ARM: shmobile: kzm9g-reference: Add PCF8575 GPIO extender to DT Laurent Pinchart
2013-11-28  7:53 ` Simon Horman
2014-11-07 13:46 ` [PATCH 1/2] ARM: shmobile: kzm9g-reference: Add restart callback Geert Uytterhoeven
2014-11-07 13:53 ` Sergei Shtylyov [this message]
2014-11-10  0:41 ` Simon Horman
2014-11-10  1:14 ` Simon Horman

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=545CCEDB.5090908@cogentembedded.com \
    --to=sergei.shtylyov@cogentembedded.com \
    --cc=linux-sh@vger.kernel.org \
    /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