From patchwork Thu Jun 24 01:12:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?6raM7YOc7JiB?= X-Patchwork-Id: 1496333 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G9QcJ0gpdz9sX1 for ; Thu, 24 Jun 2021 13:29:50 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 06F72829DD; Thu, 24 Jun 2021 05:29:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=m2i.co.kr Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 61B02829DD; Thu, 24 Jun 2021 03:13:08 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from smtp1.hiworks.co.kr (smtp1.hiworks.co.kr [121.254.168.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 29F2D829C0 for ; Thu, 24 Jun 2021 03:13:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=m2i.co.kr Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tykwon@m2i.co.kr Received: (qmail 158993 invoked from network); 24 Jun 2021 10:12:58 +0900 Received: from unknown (HELO hiworks.co.kr) (192.168.10.162) by 0 (qmail 1.03 + ejcp v14) with SMTP; 24 Jun 2021 10:12:58 +0900 Received: (qmail 132484 invoked from network); 24 Jun 2021 10:12:58 +0900 Received: from unknown (HELO localhost.localdomain) (tykwon@m2i.co.kr@58.75.176.98) by 0 (qmail 1.03 + ejcp v14) with SMTP; 24 Jun 2021 10:12:58 +0900 X-Authinfo: HIWORKS SMTP authenticated From: Kwon Tae-young To: Stefano Babic , Fabio Estevam , "NXP i.MX U-Boot Team" Cc: Kwon Tae-young , u-boot@lists.denx.de Subject: [PATCH] clock_imx8mq: Added 66 MHz support for QSPI Date: Thu, 24 Jun 2021 10:12:52 +0900 Message-Id: <20210624011252.4968-1-tykwon@m2i.co.kr> X-Mailer: git-send-email 2.17.1 X-Mailman-Approved-At: Thu, 24 Jun 2021 05:29:31 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean At the current clock setting, the maximum clock for QSPI is 25 MHz. In my case I use M-RAM which supports up to 100 MHz for QSPI, and with this change the QSPI can be clocked up to 66 MHz. Signed-off-by: Kwon Tae-young --- arch/arm/mach-imx/imx8m/clock_imx8mq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/imx8m/clock_imx8mq.c b/arch/arm/mach-imx/imx8m/clock_imx8mq.c index 8fecc60ecb..47b4a8f01f 100644 --- a/arch/arm/mach-imx/imx8m/clock_imx8mq.c +++ b/arch/arm/mach-imx/imx8m/clock_imx8mq.c @@ -473,11 +473,11 @@ int set_clk_qspi(void) { /* * set qspi root - * sys pll1 100M + * sys pll1 266M */ clock_enable(CCGR_QSPI, 0); clock_set_target_val(QSPI_CLK_ROOT, CLK_ROOT_ON | - CLK_ROOT_SOURCE_SEL(7)); + CLK_ROOT_SOURCE_SEL(5)); clock_enable(CCGR_QSPI, 1); return 0;