From patchwork Sat Feb 25 08:38:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 1747751 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=mZKErGMP; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PP0Z90NDLz2466 for ; Sat, 25 Feb 2023 19:40:01 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9E84F85B84; Sat, 25 Feb 2023 09:39:39 +0100 (CET) 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="mZKErGMP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0A90E85B84; Sat, 25 Feb 2023 09:38:45 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) (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 45F8A85B99 for ; Sat, 25 Feb 2023 09:38:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=dario.binacchi@amarulasolutions.com Received: by mail-ed1-x535.google.com with SMTP id eg37so6232463edb.12 for ; Sat, 25 Feb 2023 00:38:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=me4F0JM7Jds27bWvbPrAN/z1URpB4mxVWlTiCV6oeRE=; b=mZKErGMPM4fSinmFa0jYbILfH441Nu5xQKGU04higtc8q8zS0VnkIBUIJEUhPws3F7 GFjsnl9M3wQSn4r3qsDJzQ/G0zvt0Alzpwx87yvzFnTritNQ510gXmkLbG2kAzH8HHHt Vjb8bniYL0E3F3g8sdsDm4OvITIxveYvK7s1M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=me4F0JM7Jds27bWvbPrAN/z1URpB4mxVWlTiCV6oeRE=; b=ZcfMG3UFDYMKQgo4jjhencRjdl07g6neIgshy70TYqrhiFbU73D50B1qh9tzGJ591j ISPEZtih6DT25nuQ1rOen6xDl5MALhraykLXvvnSKszV2kWSpReML5OBFS0syQRdSdUN SSIIvPX3Joj9XZ34orZjyBdMqPrzpyN6NWh2tGS6zxDLSBShLIuYjYsJ72SUEa679uC5 7c+2TMSHeSa0v9Rg64Rst7p7yZ8pipxJ3SdGK6U/dWHEHO6QxYQ9SkWHNnWKf/2Ln9WL lqeLYsG6ONAB0gBSb2zRBxkA7K9ePwCea1Hcr4FpsILygSXrmlaTf1XNjw6sg+xmtcVb Xwvg== X-Gm-Message-State: AO0yUKUzn7jEmiiTctW7de5AXOeZoDEaCKqMz9HeIzKTu/OP7IBBd1Hr 1roi6V7jMnYn9lWin6RiDmWk6cyhl7D4NansBF4= X-Google-Smtp-Source: AK7set/rPsLT/DpHteorZ7aqrDaLAJPWtIRaDBB+r36dyouKB5Xe3ma6uQMuln2TgZm6eyU53dnAyg== X-Received: by 2002:a17:906:5d0f:b0:8f0:143d:ee28 with SMTP id g15-20020a1709065d0f00b008f0143dee28mr11560998ejt.16.1677314316779; Sat, 25 Feb 2023 00:38:36 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-82-56-22-12.retail.telecomitalia.it. [82.56.22.12]) by smtp.gmail.com with ESMTPSA id u20-20020a170906655400b008f2b0c6052csm591958ejn.89.2023.02.25.00.38.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Feb 2023 00:38:36 -0800 (PST) From: Dario Binacchi To: u-boot@lists.denx.de Cc: Lukasz Majewski , Sean Anderson , linux-amarula@amarulasolutions.com, Dario Binacchi , Fabio Estevam , "NXP i.MX U-Boot Team" , Stefano Babic Subject: [PATCH 3/3] imx6: clock: print real pixel clock rate Date: Sat, 25 Feb 2023 09:38:21 +0100 Message-Id: <20230225083821.472605-4-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230225083821.472605-1-dario.binacchi@amarulasolutions.com> References: <20230225083821.472605-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 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.6 at phobos.denx.de X-Virus-Status: Clean Add debug messages to print the real pixel clock rate, which may not be the requested one. Signed-off-by: Dario Binacchi --- arch/arm/mach-imx/mx6/clock.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-imx/mx6/clock.c b/arch/arm/mach-imx/mx6/clock.c index 267d86ab4194..1bdc568f9b14 100644 --- a/arch/arm/mach-imx/mx6/clock.c +++ b/arch/arm/mach-imx/mx6/clock.c @@ -802,6 +802,7 @@ void mxs_set_lcdclk(u32 base_addr, u32 freq) } enable_lcdif_clock(base_addr, 1); + debug("pixel clock = %u\n", mxc_get_clock(MXC_LCDIF1_CLK)); } else if (is_mx6sx()) { /* Setting LCDIF2 for i.MX6SX */ if (enable_pll_video(pll_div, pll_num, pll_denom, post_div)) @@ -823,6 +824,7 @@ void mxs_set_lcdclk(u32 base_addr, u32 freq) MXC_CCM_CSCMR1_LCDIF2_PODF_OFFSET)); enable_lcdif_clock(base_addr, 1); + debug("pixel clock = %u\n", mxc_get_clock(MXC_LCDIF2_CLK)); } }