Hello Anatolij,

On 07.08.24 11:28, Anatolij Gustschin wrote:
Hi Heiko,

On Wed,  7 Aug 2024 10:58:11 +0200
Heiko Schocher h...@denx.de wrote:

U-Boot 2024.07 drops on aristainetos2 board the following
warning:

        Failed to enable per_clk

and bootlogo is not seen on LVDS display.

This patch uses old behaviour for systems without clock framework
if CONFIG_CLK is not enabled.

Fixes: bfc778cb93a3 ("driver: pwm: pwm-imx: get and enable per/ipg clock using 
dm")

Signed-off-by: Heiko Schocher <h...@denx.de>
---

  drivers/pwm/pwm-imx.c | 56 ++++++++++++++++++++++++-------------------
  1 file changed, 31 insertions(+), 25 deletions(-)

diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c
index 8fbb40cc276..0237ee70977 100644
--- a/drivers/pwm/pwm-imx.c
+++ b/drivers/pwm/pwm-imx.c
@@ -160,7 +160,11 @@ int pwm_dm_imx_get_parms(struct imx_pwm_priv *priv, int 
period_ns,
  {
        unsigned long long c;
- c = clk_get_rate(&priv->per_clk);
+       if (IS_ENABLED(CONFIG_CLK))

Can we please use if (CONFIG_IS_ENABLED(CLK)) ? So it will also
work with SPL. Thanks!

Yep, of course, changed locally... wait for some more comments
before posting v2.

bye,
Heiko
--
--
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: h...@denx.de

Reply via email to