u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] rockchip: rk3399: fix incorrect ifdef check on SPL_DM_REGULATOR
@ 2022-07-12 15:38 Quentin Schulz
  2022-07-12 15:38 ` [PATCH 2/2] rockchip: rk3399: fix incorrect ifdef check on SPL_GPIO Quentin Schulz
  2022-07-12 17:20 ` [PATCH 1/2] rockchip: rk3399: fix incorrect ifdef check on SPL_DM_REGULATOR Philipp Tomsich
  0 siblings, 2 replies; 4+ messages in thread
From: Quentin Schulz @ 2022-07-12 15:38 UTC (permalink / raw)
  Cc: sjg, philipp.tomsich, kever.yang, alpernebiyasak, email2tema,
	jagan, u-boot, Quentin Schulz, Quentin Schulz

From: Quentin Schulz <quentin.schulz@theobroma-systems.com>

The check to perform is on CONFIG_SPL_DM_REGULATOR and not
SPL_DM_REGULATOR.

Fixes: 07586ee4322a ("rockchip: rk3399: Support common spl_board_init")
Cc: Quentin Schulz <foss+uboot@0leil.net>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
---
 arch/arm/mach-rockchip/rk3399/rk3399.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-rockchip/rk3399/rk3399.c b/arch/arm/mach-rockchip/rk3399/rk3399.c
index de11a3fa30..ad274b66ce 100644
--- a/arch/arm/mach-rockchip/rk3399/rk3399.c
+++ b/arch/arm/mach-rockchip/rk3399/rk3399.c
@@ -275,7 +275,7 @@ void spl_board_init(void)
 		rk3399_force_power_on_reset();
 #endif
 
-#if defined(SPL_DM_REGULATOR)
+#if defined(CONFIG_SPL_DM_REGULATOR)
 	/*
 	 * Turning the eMMC and SPI back on (if disabled via the Qseven
 	 * BIOS_ENABLE) signal is done through a always-on regulator).
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] rockchip: rk3399: fix incorrect ifdef check on SPL_GPIO
  2022-07-12 15:38 [PATCH 1/2] rockchip: rk3399: fix incorrect ifdef check on SPL_DM_REGULATOR Quentin Schulz
@ 2022-07-12 15:38 ` Quentin Schulz
  2022-07-12 17:23   ` Philipp Tomsich
  2022-07-12 17:20 ` [PATCH 1/2] rockchip: rk3399: fix incorrect ifdef check on SPL_DM_REGULATOR Philipp Tomsich
  1 sibling, 1 reply; 4+ messages in thread
From: Quentin Schulz @ 2022-07-12 15:38 UTC (permalink / raw)
  Cc: sjg, philipp.tomsich, kever.yang, alpernebiyasak, email2tema,
	jagan, u-boot, Quentin Schulz, Quentin Schulz

From: Quentin Schulz <quentin.schulz@theobroma-systems.com>

The check to perform is on CONFIG_SPL_GPIO and not SPL_GPIO.
Because this was never compiled in, it missed an include of cru.h that
was not detected before. Let's include it too.

Fixes: 07586ee4322a ("rockchip: rk3399: Support common spl_board_init")
Cc: Quentin Schulz <foss+uboot@0leil.net>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
---
 arch/arm/mach-rockchip/rk3399/rk3399.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-rockchip/rk3399/rk3399.c b/arch/arm/mach-rockchip/rk3399/rk3399.c
index ad274b66ce..6d30b70565 100644
--- a/arch/arm/mach-rockchip/rk3399/rk3399.c
+++ b/arch/arm/mach-rockchip/rk3399/rk3399.c
@@ -221,7 +221,9 @@ void spl_perform_fixups(struct spl_image_info *spl_image)
 			   "u-boot,spl-boot-device", boot_ofpath);
 }
 
-#if defined(SPL_GPIO)
+#if defined(CONFIG_SPL_GPIO)
+
+#include <asm/arch-rockchip/cru.h>
 static void rk3399_force_power_on_reset(void)
 {
 	ofnode node;
@@ -253,7 +255,7 @@ void spl_board_init(void)
 {
 	led_setup();
 
-#if defined(SPL_GPIO)
+#if defined(CONFIG_SPL_GPIO)
 	struct rockchip_cru *cru = rockchip_get_cru();
 
 	/*
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] rockchip: rk3399: fix incorrect ifdef check on SPL_DM_REGULATOR
  2022-07-12 15:38 [PATCH 1/2] rockchip: rk3399: fix incorrect ifdef check on SPL_DM_REGULATOR Quentin Schulz
  2022-07-12 15:38 ` [PATCH 2/2] rockchip: rk3399: fix incorrect ifdef check on SPL_GPIO Quentin Schulz
@ 2022-07-12 17:20 ` Philipp Tomsich
  1 sibling, 0 replies; 4+ messages in thread
From: Philipp Tomsich @ 2022-07-12 17:20 UTC (permalink / raw)
  To: Quentin Schulz
  Cc: sjg, kever.yang, alpernebiyasak, email2tema, jagan, u-boot,
	Quentin Schulz

On Tue, 12 Jul 2022 at 17:38, Quentin Schulz <foss+uboot@0leil.net> wrote:
>
> From: Quentin Schulz <quentin.schulz@theobroma-systems.com>
>
> The check to perform is on CONFIG_SPL_DM_REGULATOR and not
> SPL_DM_REGULATOR.
>
> Fixes: 07586ee4322a ("rockchip: rk3399: Support common spl_board_init")
> Cc: Quentin Schulz <foss+uboot@0leil.net>
> Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
> ---
>  arch/arm/mach-rockchip/rk3399/rk3399.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-rockchip/rk3399/rk3399.c b/arch/arm/mach-rockchip/rk3399/rk3399.c
> index de11a3fa30..ad274b66ce 100644
> --- a/arch/arm/mach-rockchip/rk3399/rk3399.c
> +++ b/arch/arm/mach-rockchip/rk3399/rk3399.c
> @@ -275,7 +275,7 @@ void spl_board_init(void)
>                 rk3399_force_power_on_reset();
>  #endif
>
> -#if defined(SPL_DM_REGULATOR)
> +#if defined(CONFIG_SPL_DM_REGULATOR)

This should use IS_ENABLED(...) or CONFIG_IS_ENABLED(...) and be a
regular if-block instead of an #ifdef.

>         /*
>          * Turning the eMMC and SPI back on (if disabled via the Qseven
>          * BIOS_ENABLE) signal is done through a always-on regulator).
> --
> 2.36.1
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] rockchip: rk3399: fix incorrect ifdef check on SPL_GPIO
  2022-07-12 15:38 ` [PATCH 2/2] rockchip: rk3399: fix incorrect ifdef check on SPL_GPIO Quentin Schulz
@ 2022-07-12 17:23   ` Philipp Tomsich
  0 siblings, 0 replies; 4+ messages in thread
From: Philipp Tomsich @ 2022-07-12 17:23 UTC (permalink / raw)
  To: Quentin Schulz
  Cc: sjg, kever.yang, alpernebiyasak, email2tema, jagan, u-boot,
	Quentin Schulz

On Tue, 12 Jul 2022 at 17:38, Quentin Schulz <foss+uboot@0leil.net> wrote:
>
> From: Quentin Schulz <quentin.schulz@theobroma-systems.com>
>
> The check to perform is on CONFIG_SPL_GPIO and not SPL_GPIO.
> Because this was never compiled in, it missed an include of cru.h that
> was not detected before. Let's include it too.
>
> Fixes: 07586ee4322a ("rockchip: rk3399: Support common spl_board_init")
> Cc: Quentin Schulz <foss+uboot@0leil.net>
> Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
> ---
>  arch/arm/mach-rockchip/rk3399/rk3399.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/mach-rockchip/rk3399/rk3399.c b/arch/arm/mach-rockchip/rk3399/rk3399.c
> index ad274b66ce..6d30b70565 100644
> --- a/arch/arm/mach-rockchip/rk3399/rk3399.c
> +++ b/arch/arm/mach-rockchip/rk3399/rk3399.c
> @@ -221,7 +221,9 @@ void spl_perform_fixups(struct spl_image_info *spl_image)
>                            "u-boot,spl-boot-device", boot_ofpath);
>  }
>
> -#if defined(SPL_GPIO)
> +#if defined(CONFIG_SPL_GPIO)

#if IS_ENABLED(…)

> +
> +#include <asm/arch-rockchip/cru.h>
>  static void rk3399_force_power_on_reset(void)
>  {
>         ofnode node;
> @@ -253,7 +255,7 @@ void spl_board_init(void)
>  {
>         led_setup();
>
> -#if defined(SPL_GPIO)
> +#if defined(CONFIG_SPL_GPIO)

if (IS_ENABLED(…)) { }

>         struct rockchip_cru *cru = rockchip_get_cru();
>
>         /*
> --
> 2.36.1
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-07-12 17:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-12 15:38 [PATCH 1/2] rockchip: rk3399: fix incorrect ifdef check on SPL_DM_REGULATOR Quentin Schulz
2022-07-12 15:38 ` [PATCH 2/2] rockchip: rk3399: fix incorrect ifdef check on SPL_GPIO Quentin Schulz
2022-07-12 17:23   ` Philipp Tomsich
2022-07-12 17:20 ` [PATCH 1/2] rockchip: rk3399: fix incorrect ifdef check on SPL_DM_REGULATOR Philipp Tomsich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).