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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5EE19C433EF for ; Wed, 20 Oct 2021 17:21:33 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id CEEAE610E7 for ; Wed, 20 Oct 2021 17:21:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CEEAE610E7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1C9EA83426; Wed, 20 Oct 2021 19:21:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1634750483; bh=/NS4J3ddXYztKPUwpmlhFBNBw+GeFkPBzEzQpOH1rbw=; h=From:To:Subject:In-reply-to:Date:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From; b=BlvvXV3Yvpb2djp7L7g2WyJAUWyEKrHoVnT0L3pm9h0UCd2ru9MXZMVEhLMtEqNXD EGZCzleeKHfnl8T93bWuO388VkHqvm6rz8w8tPlGRU7oKt3yk5/PDZoBe8WokA6DBw Y0Du3CNFhQnzVf/wxInK37kx4vID+oZVjcR8fEajGkK25xkvE5unxH45xmaJFtIgrz pX3Kb3BgI4XtII4su/uuvznpmHtgbazDnCj8mBNj0btrsONCSHc8aSTsIa6wEiaxVn FnYMSIOdG23GjnKMJF+CtlyLE2GwPp5ncr74jIJDAFB5kwKV23f+TiH6Xuk2bnaIYn cZjZMs1UGtrIA== Received: by phobos.denx.de (Postfix, from userid 109) id DA20E832E8; Wed, 20 Oct 2021 19:20:58 +0200 (CEST) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) (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 524E1833E4 for ; Wed, 20 Oct 2021 19:20:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sbabic@denx.de Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4HZHSf68vQz1qyJ6; Wed, 20 Oct 2021 19:20:50 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4HZHSf5nJ3z1qqkC; Wed, 20 Oct 2021 19:20:50 +0200 (CEST) X-Amavis-Alert: BAD HEADER SECTION, Missing required header field: "Date" Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id HJiYxxubd1-g; Wed, 20 Oct 2021 19:20:49 +0200 (CEST) Received: from papero (host-88-217-136-221.customer.m-online.net [88.217.136.221]) by mail.mnet-online.de (Postfix) with ESMTP; Wed, 20 Oct 2021 19:20:49 +0200 (CEST) From: sbabic@denx.de X-Patchwork-Submitter: Philippe Schenker X-Patchwork-Id: 1541468 X-Patchwork-Delegate: sbabic@denx.de To: Philippe Schenker ,u-boot@lists.denx.de Subject: [PATCH] colibri-imx6ull: fix setup of nand gpmi clock In-reply-to: <20211015082551.223788-1-philippe.schenker@toradex.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Message-Id: <20211020172058.DA20E832E8@phobos.denx.de> Date: Wed, 20 Oct 2021 19:20:51 +0200 (CEST) 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 > NXP used to setup the gpmi clock root from gpmi_clk in early versions > in their downstream BSP. [1] > However on mainline the gpmi clock root was always setup from enfc > since the beginning of the i.MX 6 series SoCs, which is still the same > today. [2] > NXP followed the mainline approach at some point and changed > setup_gpmi_io_clk to setup gpmi clock root from enfc which left faulty > code behind in our board file. [3] > This commit follows the change of NXP as it improves the performance of > the NAND from ~1.2 MiB/s to ~12 MiB/s. [3] > This change was verified to work in recovery-mode and u-boot loaded > from NAND on all four Colibri iMX6ULL SKUs from Toradex. > The frequency used to read the NAND, measured on RE# (Read Enable): > before this patch: 1.4 MHz > after this patch: 22 MHz > in Linux Kernel: 50 MHz > [1] https://source.codeaurora.org/external/imx/uboot-imx/tree/arch/arm/cpu/= armv7/mx6/clock.c?h=3Dnxp/imx_v2016.03_4.1.15_2.0.0_ga#n62 > [2] commit 23608e23fd65 ("i.mx: add the initial support for freescale i.MX6= Q processor") > [3] https://source.codeaurora.org/external/imx/uboot-imx/commit/?id=3D7a82a= 19ceabfb04bbc1591a67c99751748781c7d > Signed-off-by: Philippe Schenker Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D