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 95559C433F5 for ; Thu, 21 Apr 2022 06:48:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4FA7283AE1; Thu, 21 Apr 2022 08:48:12 +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="PQzl3+pT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 38674831CA; Thu, 21 Apr 2022 08:48:10 +0200 (CEST) Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) (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 E530783B9E for ; Thu, 21 Apr 2022 08:48:07 +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-ej1-x636.google.com with SMTP id y10so7964196ejw.8 for ; Wed, 20 Apr 2022 23:48:07 -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:mime-version:content-disposition; bh=2xKI4pcwz4MQgU48wOBDEvFXBYIwhLwsZFKaVHEq6/E=; b=PQzl3+pTR8JifgvVs6VZXZBqoUYZdjyHa7rio6T3UF5CNb6E4AzS8ldiQsdNvNYOnc n7ZZe6ppYN+xGbJ4HVbDd3ozfkyrdnX22Fkk95j2DUlzS7mReLpcpmTP1Qme67TzAMUz HvHhLAImyvnsFEgqAUeWp43n+LbABu/G85tJ8= 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:mime-version :content-disposition; bh=2xKI4pcwz4MQgU48wOBDEvFXBYIwhLwsZFKaVHEq6/E=; b=WOg2cjuPX8ORV7gBavRPj5mlPhRWkRT1mksu0OFsae/XNMozsQo2oDAOs3yMPWpuc1 givQOrRo/keN3MKWOlHVzY+znF0WNmC0GQG0Bl9/nLXcXdx3E9Y2u6y8AOWygfHJa0tn 8LdAkv/PFw3eK8HywP9W353OZhwp4HaXeTaaj+7qkwT8Ei69hDP0RWgAt7Xu+pUP0A3M AQASlC8KYm6StGRSvLVxFBrNAyBglnQkuejepdVw0npD5143bsZvqEIC0IYnAqzAY7AT kRCPDcyJDAb0JlPivseAD3stLzvE/Lo938ap/OvXHsQaAUH+Q+nBs5UJGP+aYLLUzowA +1HQ== X-Gm-Message-State: AOAM5314rrtSuDCMuwlKlVaCht+ST8+wDIN6r0yelthWzyhLALGie3aN O65julTFIM+v8FPNpERaSJCMlKW4cCmHyQ== X-Google-Smtp-Source: ABdhPJxkhvulFFS4ACbklLFbAVSUl9ww84H1pX0AxwQ0gqqxC6DFOw1u9Md6wNEXymP/KykIYC8gcw== X-Received: by 2002:a17:907:2ce4:b0:6ef:f145:acf with SMTP id hz4-20020a1709072ce400b006eff1450acfmr8575660ejc.574.1650523687388; Wed, 20 Apr 2022 23:48:07 -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 x19-20020a05640226d300b004228faf83desm9373438edd.12.2022.04.20.23.48.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Apr 2022 23:48:07 -0700 (PDT) Date: Thu, 21 Apr 2022 08:48:05 +0200 From: Tommaso Merciai To: u-boot@lists.denx.de Cc: Lukasz Majewski , Sean Anderson Subject: imx8mm eLCDIF clock Message-ID: <20220421064805.GA2335@tom-ThinkPad-T14s-Gen-2i> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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 following code 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? 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