All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [PATCH v3 06/15] board: ns3: default reset type to L3
Date: Thu, 25 Jun 2020 19:11:42 -0600	[thread overview]
Message-ID: <CAPnjgZ1eaN7e05JNUX3Tmqj5oLA1p3FyHjUq-zv8FSz6BngE5g@mail.gmail.com> (raw)
In-Reply-To: <20200610104120.30668-7-rayagonda.kokatanur@broadcom.com>

Hi Rayagonda,

On Wed, 10 Jun 2020 at 04:42, Rayagonda Kokatanur
<rayagonda.kokatanur@broadcom.com> wrote:
>
> Default "reset" from u-boot to L3 reset.

U-Boot

> "reset" command with argument will trigger L1 reset.
>
> Signed-off-by: Rajesh Ravi <rajesh.ravi@broadcom.com>
> Signed-off-by: Bharat Kumar Reddy Gooty <bharat.gooty@broadcom.com>
> Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
> ---
>  board/broadcom/bcmns3/ns3.c | 20 ++++++++++++++++++--
>  1 file changed, 18 insertions(+), 2 deletions(-)
>
> diff --git a/board/broadcom/bcmns3/ns3.c b/board/broadcom/bcmns3/ns3.c
> index 5e644bd466..1221f26ddc 100644
> --- a/board/broadcom/bcmns3/ns3.c
> +++ b/board/broadcom/bcmns3/ns3.c
> @@ -68,7 +68,23 @@ int dram_init_banksize(void)
>         return 0;
>  }
>
> -void reset_cpu(ulong addr)
> +void reset_cpu(ulong level)
>  {

This should be in a sysreset driver. It supports different reset types.

> -       psci_system_reset();
> +#define L3_RESET 30
> +       u32 reset_level, strap_val;
> +
> +       /* Default reset type is L3 reset */
> +       if (!level) {
> +               /*
> +                * Encoding: u-boot reset command expects decimal argument
> +                * strap val = 1st decimal digit;reset level = 2nd decimal digit
> +                */
> +               strap_val = L3_RESET % 10;
> +               level = L3_RESET / 10;
> +               reset_level = level % 10;
> +               psci_system_reset2(reset_level, strap_val);
> +       } else {
> +               /* U-boot cmd "reset" with any arg will trigger L1 reset */
> +               psci_system_reset();
> +       }
>  }
> --
> 2.17.1
>

Regards,
Simon

  reply	other threads:[~2020-06-26  1:11 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-10 10:41 [PATCH v3 00/15] add initial support for broadcom NS3 soc Rayagonda Kokatanur
2020-06-10 10:41 ` [PATCH v3 01/15] board: ns3: add support for Broadcom Northstar 3 Rayagonda Kokatanur
2020-06-17  3:11   ` Simon Glass
2020-06-10 10:41 ` [PATCH v3 02/15] arm: cpu: armv8: add L3 memory flush support Rayagonda Kokatanur
2020-06-17  3:11   ` Simon Glass
2020-06-19 16:55     ` Rayagonda Kokatanur
2020-06-26  1:43       ` Simon Glass
2020-06-26  9:06         ` Rayagonda Kokatanur
2020-06-10 10:41 ` [PATCH v3 03/15] configs: ns3: enable clock subsystem Rayagonda Kokatanur
2020-06-17  3:11   ` Simon Glass
2020-06-17  6:44     ` Rayagonda Kokatanur
2020-06-10 10:41 ` [PATCH v3 04/15] dt-bindings: memory: ns3: add memory definitions Rayagonda Kokatanur
2020-06-26  1:11   ` Simon Glass
2020-06-10 10:41 ` [PATCH v3 05/15] board: ns3: add api to save boot parameters passed from BL31 Rayagonda Kokatanur
2020-06-26  1:11   ` Simon Glass
2020-06-26 17:15     ` Rayagonda Kokatanur
2020-06-10 10:41 ` [PATCH v3 06/15] board: ns3: default reset type to L3 Rayagonda Kokatanur
2020-06-26  1:11   ` Simon Glass [this message]
2020-06-30  4:43     ` Rayagonda Kokatanur
2020-07-03  0:46       ` Simon Glass
2020-07-08  7:01         ` Rayagonda Kokatanur
2020-07-08 15:01           ` Simon Glass
2020-07-08 15:14             ` Rayagonda Kokatanur
2020-06-10 10:41 ` [PATCH v3 07/15] dt-bindings: memory: ns3: update GIC LPI address Rayagonda Kokatanur
2020-06-26  1:11   ` Simon Glass
2020-07-04  7:50     ` Rayagonda Kokatanur
2020-07-04 18:50       ` Rayagonda Kokatanur
2020-07-05 18:21         ` Rayagonda Kokatanur
2020-07-06  5:26           ` Simon Glass
2020-07-06  6:23             ` Rayagonda Kokatanur
2020-07-08 15:21               ` Rayagonda Kokatanur
2020-06-10 10:41 ` [PATCH v3 08/15] board: ns3: program GIC LPI tables Rayagonda Kokatanur
2020-06-26  1:11   ` Simon Glass
2020-07-05 18:14     ` Rayagonda Kokatanur
2020-06-10 10:41 ` [PATCH v3 09/15] configs: ns3: enable GIC ITS LPI table programing Rayagonda Kokatanur
2020-06-26  1:11   ` Simon Glass
2020-06-10 10:41 ` [PATCH v3 10/15] dt-bindings: memory: ns3: add ddr memory definition Rayagonda Kokatanur
2020-06-26  1:11   ` Simon Glass
2020-06-10 10:41 ` [PATCH v3 11/15] board: ns3: define ddr memory layout Rayagonda Kokatanur
2020-06-26  1:11   ` Simon Glass
2020-06-10 10:41 ` [PATCH v3 12/15] board: ns3: limit U-boot relocation within 16MB memory Rayagonda Kokatanur
2020-06-26  1:11   ` Simon Glass
2020-06-26 10:21     ` Rayagonda Kokatanur
2020-06-29 17:26       ` Simon Glass
2020-07-08  8:17         ` Rayagonda Kokatanur
2020-06-10 10:41 ` [PATCH v3 13/15] include/configs: ns3: add env variables for Linux boot Rayagonda Kokatanur
2020-06-26  1:11   ` Simon Glass
2020-06-26 18:08     ` Rayagonda Kokatanur
2020-06-10 10:41 ` [PATCH v3 14/15] include/configs: ns3: add support for flashing images Rayagonda Kokatanur
2020-06-26  1:11   ` Simon Glass
2020-06-10 10:41 ` [PATCH v3 15/15] MAINTAINERS: update maintainers for broadcom ns3 platform Rayagonda Kokatanur
2020-06-26  1:11   ` Simon Glass
2020-06-26 14:27   ` Peter Tyser
2020-06-26 14:30     ` Rayagonda Kokatanur

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=CAPnjgZ1eaN7e05JNUX3Tmqj5oLA1p3FyHjUq-zv8FSz6BngE5g@mail.gmail.com \
    --to=sjg@chromium.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.