Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 87AB8C433EF for ; Thu, 21 Apr 2022 10:29:19 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 02C7683AE6; Thu, 21 Apr 2022 12:29:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="LXnQSJ8L"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C2B3283879; Thu, 21 Apr 2022 12:29:15 +0200 (CEST) Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D761C83CF3 for ; Thu, 21 Apr 2022 12:29:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tommaso.merciai@amarulasolutions.com Received: by mail-ed1-x533.google.com with SMTP id g20so5922150edw.6 for ; Thu, 21 Apr 2022 03:29:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=U+ao8BkgaXPxIKAnbCPhLa3Y5es2Oc7ys1cx1dFzbtA=; b=LXnQSJ8LcMU2qLJOjF2Vx8ssxqNuZXWBQK6EqPOsn6A2BiBF7EDCI8Ph3ovyUVdQPs bcxfqUHeuZKfsBbz/tQfGrF5ntkd10TkR+JAPvABrSaopucK58v01qER2AwdhGTxk89K lTB3wNcQg5rPxk/9p+XhIduaj5s6KVm5PdnbQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=U+ao8BkgaXPxIKAnbCPhLa3Y5es2Oc7ys1cx1dFzbtA=; b=OTLMYYMUS80DPOHFZJoeG7ybYkeHdRqTFcWHV8uq5/6spc0rWw+cY9tAqjDVOLyq9z dFkm1VeyzYW3vZnreJNewObVHjn2t+uYCNaNRlpqIZKcb6LEpQ+m+c4EjbN/BbrYLaBY KdCvOwruU6K00nh/auxT8HyELb4CPmG4Y5EC3J1d2sbGUqUkVxhoh4528GgaZm7oGzHf 3SlQfBBVX0P+BEMQZ28YXv2HPaaKWQDXf02rxBs/TXRA38+XdfH0RET+cbNCKOAlZU+x J5y9P7VY+mGh29RZBAylljq6HWt2sytTQ9d+oQMpaRMCroftc3kS1Gyf8cO5exrzr/k/ 2O3Q== X-Gm-Message-State: AOAM533W9IqnWvfpOnDGizb04RZqzUa8w7X+aLXMETLQpcef9bRegG3u b49UivvxGAnlNSRmn+3XJu8RGNnHfhoo8w== X-Google-Smtp-Source: ABdhPJwhMPJG8sh7rNmGopFapG87+bY0xaxhLH6JtzbNn85nMCKVtAeGCwbsakDfWf2KhbNZAozy7g== X-Received: by 2002:a05:6402:50cb:b0:423:d7a8:719e with SMTP id h11-20020a05640250cb00b00423d7a8719emr25150766edb.37.1650536950288; Thu, 21 Apr 2022 03:29:10 -0700 (PDT) Received: from tom-ThinkPad-T14s-Gen-2i (net-188-217-56-163.cust.vodafonedsl.it. [188.217.56.163]) by smtp.gmail.com with ESMTPSA id z7-20020a17090665c700b006efb9a33ca5sm3986271ejn.164.2022.04.21.03.29.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Apr 2022 03:29:09 -0700 (PDT) Date: Thu, 21 Apr 2022 12:29:07 +0200 From: Tommaso Merciai To: u-boot@lists.denx.de Cc: Lukasz Majewski , Sean Anderson , Fabio Estevam , Tim Harvey , Marek Vasut , Michael Trimarchi , Adam Ford Subject: Re: imx8mm eLCDIF clock Message-ID: <20220421102907.GC2335@tom-ThinkPad-T14s-Gen-2i> References: <20220421064805.GA2335@tom-ThinkPad-T14s-Gen-2i> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220421064805.GA2335@tom-ThinkPad-T14s-Gen-2i> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean On Thu, Apr 21, 2022 at 08:48:05AM +0200, Tommaso Merciai wrote: + Fabio + Tim + Michael + Marek + Adam > Hi, > I'm working on drivers/clk/imx/clk-imx8mm.c to port and bring up eLCDIF > clocks. After port all necessary clocks needed by eLCDIF I found that > IMX8MM_VIDEO_PLL1 clock is not enabled and need the clk_enable to enable > it at the end of the clk-imx8mm probe: > > struct clk *clkp; > > clk_get_by_id(IMX8MM_VIDEO_PLL1, &clkp); > clk_set_rate(clkp, 594000000UL); > clk_enable(clkp); > > What do you think about this solution? > There is a more standard way to do this? > I'm missing somethings? > > Thanks, > Tommmaso > -- > Tommaso Merciai > Embedded Linux Engineer > tommaso.merciai@amarulasolutions.com > __________________________________ > > Amarula Solutions SRL > Via Le Canevare 30, 31100 Treviso, Veneto, IT > T. +39 042 243 5310 > info@amarulasolutions.com > www.amarulasolutions.com -- Tommaso Merciai Embedded Linux Engineer tommaso.merciai@amarulasolutions.com __________________________________ Amarula Solutions SRL Via Le Canevare 30, 31100 Treviso, Veneto, IT T. +39 042 243 5310 info@amarulasolutions.com www.amarulasolutions.com