public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Michal Simek <michal.simek@xilinx.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ARM: zynq: Add function to get reboot status register value.
Date: Wed, 27 Jan 2016 14:15:46 +0100	[thread overview]
Message-ID: <56A8C302.3050604@xilinx.com> (raw)
In-Reply-To: <1453893754-1187-1-git-send-email-moritz.fischer@ettus.com>

On 27.1.2016 12:22, Moritz Fischer wrote:
> Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
> ---
> Hi Michal,
> 
>    I was planning to use this in future to boot into recovery mode.
>    The change is small enough I feel that we could directly take it.
>    If you want to hold off until there's a user that's fine for me, too.
> 
>    Cheers,
> 
>    Moritz
> ---
>  arch/arm/mach-zynq/slcr.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/arch/arm/mach-zynq/slcr.c b/arch/arm/mach-zynq/slcr.c
> index 05f4099..709711a 100644
> --- a/arch/arm/mach-zynq/slcr.c
> +++ b/arch/arm/mach-zynq/slcr.c
> @@ -166,6 +166,11 @@ u32 zynq_slcr_get_boot_mode(void)
>  	return readl(&slcr_base->boot_mode);
>  }
>  
> +u32 zynq_slcr_get_reboot_status(void)
> +{
> +	return readl(&slcr_base->reboot_status);
> +}
> +
>  u32 zynq_slcr_get_idcode(void)
>  {
>  	return (readl(&slcr_base->pss_idcode) & SLCR_IDCODE_MASK) >>
> 

Isn't this generating sparse warning if it is not used and declared?

Thanks,
Michal

  reply	other threads:[~2016-01-27 13:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-27 11:22 [U-Boot] [PATCH] ARM: zynq: Add function to get reboot status register value Moritz Fischer
2016-01-27 13:15 ` Michal Simek [this message]
2016-01-27 13:53   ` Moritz Fischer
2016-01-27 15:36     ` Albert ARIBAUD

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=56A8C302.3050604@xilinx.com \
    --to=michal.simek@xilinx.com \
    --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