U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Dragan Simic <dsimic@manjaro.org>
To: Anand Moon <linux.amoon@gmail.com>
Cc: Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org>,
	Kever Yang <kever.yang@rock-chips.com>,
	Jagan Teki <jagan@edgeble.ai>, Jonas Karlman <jonas@kwiboo.se>,
	Quentin Schulz <quentin.schulz@cherry.de>,
	Anand Moon <anand@edgeble.ai>,
	u-boot@lists.denx.de
Subject: Re: [PATCH RFC v2 10/23] rockchip: PX30: Read the reset cause from clock reset unit for PX30 SoC
Date: Fri, 31 May 2024 23:48:06 +0200	[thread overview]
Message-ID: <1095f045ef73acd2fefa68aef0dfb3c8@manjaro.org> (raw)
In-Reply-To: <20240531141837.13189-11-linux.amoon@gmail.com>

Hello Anand,

On 2024-05-31 16:18, Anand Moon wrote:
> From: Anand Moon <anand@edgeble.ai>
> 
> Read the reset cause from clock reset unit for PX30 SoC.
> 
> Cc: Jagan Teki <jagan@edgeble.ai>
> Signed-off-by: Anand Moon <anand@edgeble.ai>
> Signed-off-by: Anand Moon <linux.amoon@gmail.com>
> ---
>  arch/arm/include/asm/arch-rockchip/cru.h | 2 ++
>  arch/arm/mach-rockchip/cpu-info.c        | 2 ++
>  2 files changed, 4 insertions(+)
> 
> diff --git a/arch/arm/include/asm/arch-rockchip/cru.h
> b/arch/arm/include/asm/arch-rockchip/cru.h
> index 19bd2b405b..7a69a839e6 100644
> --- a/arch/arm/include/asm/arch-rockchip/cru.h
> +++ b/arch/arm/include/asm/arch-rockchip/cru.h
> @@ -21,6 +21,8 @@
>  #include <asm/arch-rockchip/cru_rk3568.h>

Although not related to this patch directly, a single space character
should be added between "#" and "include", for consistency.

>  #elif defined(CONFIG_ROCKCHIP_RK3588)
>  #include <asm/arch-rockchip/cru_rk3588.h>

The same comment as above.

> +#elif defined(CONFIG_ROCKCHIP_PX30)
> +#include <asm/arch-rockchip/cru_px30.h>

The same comment as above, bit this time related to this patch.

>  #endif
> 
>  /* CRU_GLB_RST_ST */
> diff --git a/arch/arm/mach-rockchip/cpu-info.c
> b/arch/arm/mach-rockchip/cpu-info.c
> index 113a03acdf..9be28754fd 100644
> --- a/arch/arm/mach-rockchip/cpu-info.c
> +++ b/arch/arm/mach-rockchip/cpu-info.c
> @@ -22,6 +22,8 @@ char *get_reset_cause(void)
>  	struct rk3568_cru *cru = rockchip_get_cru();
>  #elif IS_ENABLED(CONFIG_ROCKCHIP_RK3588)
>  	struct rk3588_cru *cru = rockchip_get_cru();
> +#elif IS_ENABLED(CONFIG_ROCKCHIP_PX30)
> +	struct px30_cru *cru = rockchip_get_cru();
>  #endif
>  	char *cause = NULL;

  reply	other threads:[~2024-05-31 21:48 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-31 14:18 [PATCH RFC v2 00/23] Enable display cpuinfo to get the reset cause Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 01/23] rockchip: RK3328: Read the reset cause from clock reset unit for RK3328 SoC Anand Moon
2024-05-31 21:43   ` Dragan Simic
2024-07-16  2:28   ` Kever Yang
2024-07-16  5:40     ` Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 02/23] rockchip: RK3328: Enable display cpuinfo support on all boards Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 03/23] rockchip: RK3399: Read the reset cause from clock reset unit for RK3399 SoC Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 04/23] rockchip: RK3399: Enable display cpuinfo support on all boards Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 05/23] arm: rockchip: Enable display cpuinfo to be build with SPL_BUILD Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 06/23] rockchip: RK3568: Read the reset cause from clock reset unit for RK356x SoC Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 07/23] rockchip: RK3568: Enable display cpuinfo support on all boards Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 08/23] rockchip: RK3588: Read the reset cause from clock reset unit for RK3588 SoC Anand Moon
2024-05-31 21:45   ` Dragan Simic
2024-05-31 14:18 ` [PATCH RFC v2 09/23] rockchip: RK3588: Enable display cpuinfo support on all boards Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 10/23] rockchip: PX30: Read the reset cause from clock reset unit for PX30 SoC Anand Moon
2024-05-31 21:48   ` Dragan Simic [this message]
2024-05-31 14:18 ` [PATCH RFC v2 11/23] rockchip: PX30: Enable display cpuinfo support on all boards Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 12/23] rockchip: RK3288: Read the reset cause from clock reset unit for RK3288 SoC Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 13/23] rockchip: RK3288: Enable display cpuinfo support on all boards Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 14/23] rockchip: RK3308: Read the reset cause from clock reset unit for RK3308 SoC Anand Moon
2024-05-31 21:49   ` Dragan Simic
2024-05-31 14:18 ` [PATCH RFC v2 15/23] rockchip: RK3308: Enable display cpuinfo support on all boards Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 16/23] rockchip: RK3368: Read the reset cause from clock reset unit for RK3368 SoC Anand Moon
2024-05-31 21:51   ` Dragan Simic
2024-05-31 14:18 ` [PATCH RFC v2 17/23] rockchip: RK3368: Enable display cpuinfo support on all boards Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 18/23] rockchip: RV1108: Read the reset cause from clock reset unit for RV1108 SoC Anand Moon
2024-05-31 21:52   ` Dragan Simic
2024-05-31 14:18 ` [PATCH RFC v2 19/23] rockchip: RV1108: Enable display cpuinfo support on all boards Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 20/23] rockchip: RV1126: Read the reset cause from clock reset unit for RV1126 SoC Anand Moon
2024-05-31 21:53   ` Dragan Simic
2024-06-01  5:25     ` Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 21/23] rockchip: RV1126: Enable display cpuinfo support on all boards Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 22/23] sysreset: rockchip: use fst reset for ARM64 SOC Anand Moon
2024-05-31 16:44   ` Jonas Karlman
2024-06-01  4:39     ` Anand Moon
2024-07-15 10:19     ` Kever Yang
2024-05-31 21:55   ` Dragan Simic
2024-05-31 14:18 ` [PATCH RFC v2 23/23] sysreset: rockchip: use dev_read_addr_ptr get cru base Anand Moon

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=1095f045ef73acd2fefa68aef0dfb3c8@manjaro.org \
    --to=dsimic@manjaro.org \
    --cc=anand@edgeble.ai \
    --cc=jagan@edgeble.ai \
    --cc=jonas@kwiboo.se \
    --cc=kever.yang@rock-chips.com \
    --cc=linux.amoon@gmail.com \
    --cc=quentin.schulz@cherry.de \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.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