From patchwork Wed Sep 28 08:45:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2393 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 0C7C33F042 for ; Wed, 28 Sep 2022 10:45:25 +0200 (CEST) Received: by mail-ed1-f69.google.com with SMTP id e15-20020a056402190f00b0044f41e776a0sf9707106edz.0 for ; Wed, 28 Sep 2022 01:45:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1664354724; cv=pass; d=google.com; s=arc-20160816; b=FBTifOHEb10LnQWmLjUDIgt52hE4SwHb2MorRpTlEO9NfgXpibefpq8L9uktI3VQPQ A09GReVAxUw6mvVc113cpl5QLdr1J3u9d7M6WnMXIFfnqNmM6UEOjhMmtXcbZiZTLyhS 35xf/c/yj1hSCaj1FzNSaotRw1oG9MQOSRK2GZtLvxoLky4cQkfmncPgo0I8bNxD5Al/ PDaKZxhhzXpKWZt6ZmrasNtPIeTEZSeyEsuWON0u+tXCBCcY4mNnvtqTbLrnlIJ9CACf nqAXUCubx+ZwcWqEd0lE19oAg8yM4cLp0BTiD7zd1ReImBzH7sI1lw9ethjBqmpoWl/0 GjAg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=DY3VONqv8FBAjXVHAFsULa4tfAIKpEWcEDmkdLBJSXE=; b=0OE7M8goEOgGV7YrSJuxB0ouwVcK0rfy05/BJ/GKoA8ysBt3yP8OMMsh53/IURZZ3y e3m5exQaFf0UAYC+lQ8DcEsGv658HIA0QgDGGZ/fpskPtQvg+b7Z7NFLmgeSPkXeLKsA 8/rk+pllnojZCMOpC4uj3a8TSZDNFzRmL226j1z+8VGHFl3UFwoEOspxDq5WbRUtT8xL GdB/J5Vrc6cmS7ot70D2iIuvQbZskvJxTsHz8cmsVjApE8ZjDSrNx8MAnwYO7wRKMTAR ZSnSn2Nb5d/XXIzKiQWaitP0nuUQl5JpZTA28oqnvxv6ceyAqh+KzKKoZ0v5QNXRAYyI xD6g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ImMYitMC; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date; bh=DY3VONqv8FBAjXVHAFsULa4tfAIKpEWcEDmkdLBJSXE=; b=rVStTl3AKaILhrZ+Cr9qMs7yhXTW6vVOUvpe+AWuQR9mepAPXyxOwjg+37WD0l+1h4 D0NouEYCHafTvnWh5r5wq/KOerq+hd+hT/IVezunyBfNmfkLJkeVIv9WWrQi1Q8UEU5N RHW45okUCQi5CxZoOzhcYD5jPWBRTHccpgVxE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=DY3VONqv8FBAjXVHAFsULa4tfAIKpEWcEDmkdLBJSXE=; b=LOoxjwwMKAWNNMOmlf6fIsqGMzTBcshyYx0W7OAVER5PAe5ARZn8ROdjdoWGrurE/R 78ZOR6bQfaYgOBYwpgQwex1QbHAhx4PR5jFVsxO9Zghc2mJAVFQH69hIUF87jx3LMegZ WAhzvUpG4WwzvmyE6BxA9Ge4bx0CYYjPr7OtA/4UeOnnPWwfDAIDVR02PbahqtcUPRy9 apHP25NDI3HPHNx5C4VqazcvSX5hrUCn5G1ggU19zX3gP0sqpqJhGg5I976h41Nmicnw zDPkyepHTY7Wmq7ByX5zUP7g840gsaqcxCu3LYiXfm7Vj0asJIrpiH7InGcUA7L6JBvf uU2g== X-Gm-Message-State: ACrzQf3/8iDMRMqgWyArEchwQ4REpw4vq73GylEftgiMs+UkxJCZIr4F zx2/W2WmAMK7Cr/xLLYOQ1KtvF0a X-Google-Smtp-Source: AMsMyM7d4MGUvZ1qlKHTGvIwjSCsp6JKNzvcuulFl+XTWEmnTawIQkPGXpZAF/5k5OLA8jdHwST6kg== X-Received: by 2002:a05:6402:e87:b0:456:c93c:5361 with SMTP id h7-20020a0564020e8700b00456c93c5361mr25389465eda.88.1664354724611; Wed, 28 Sep 2022 01:45:24 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:906:578d:b0:73d:75ed:a850 with SMTP id k13-20020a170906578d00b0073d75eda850ls521183ejq.2.-pod-prod-gmail; Wed, 28 Sep 2022 01:45:23 -0700 (PDT) X-Received: by 2002:a17:907:2e02:b0:77c:405e:e740 with SMTP id ig2-20020a1709072e0200b0077c405ee740mr25146584ejc.139.1664354723419; Wed, 28 Sep 2022 01:45:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664354723; cv=none; d=google.com; s=arc-20160816; b=gbYUZrtJFvqn/nt30Wfz0+kZrzIi0DRCf1UBabZTdYD1qIbFim1bwwE+bfsgjzJjSK VIZweb8X8yItk0OoL4tTMlJ87Wwa7XqVL62cVLeVtCwmP4hMWmuuVDnQN8bWaUe3lMbp 8GLcFj7kou7NS6Db8/pttAaG9cj4ZjgGpZsSnB7eJZdtYIPOmWeCpDS8EblFX9CZ74ga PHacHF5ovGqOAWiEiPkUzjqLIbk/O6dsR5EgRPobyjSgonTWCLWKDlTaR5FbikD0Lkgr Hu0GKG4ujvMHePsyKL8IrGNB+Wnea7Ym+V67A9K0hICoHeQpSgZpEy2td4Yb9PKqUqzE Eftg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=B9TvoaLm6VLKSk5Zjlp/79YgMtX8sa2T2VQhtRwynkw=; b=vNrhBpJkK3pu7TUvscrvhUAPhfAYbDH1PbOHHoqlnEC6drShHDBQd/zxzb64HWUSP9 McSbhdxIaxQUUgegkYeplY/GJup/L9AFYXbYQ/MGouqOgAMnErFGsCFetBJsw9Te5yto bce78q0mVRfQScxvIdnrPf95Okt76zq8HOdQ5cv2t5DYnw9J9Agdjtw/AnIqncOIPR+k PKjiIikI7X6Z9QPWbaeFtPEOwsrMQjcXxrM5AxChiGaurgQwCE1bFrPWOzR51Ww7iMVt +te7Afz25vwKf2cnxb74zvmssbt4xt0Q05VwYnSWRpNs/r9hc3zOxKlPA36Mjp0ua6r/ nvsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ImMYitMC; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id l15-20020a50d6cf000000b00457109e42c9sor2253587edj.5.2022.09.28.01.45.23 for (Google Transport Security); Wed, 28 Sep 2022 01:45:23 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:6402:2489:b0:454:11de:7698 with SMTP id q9-20020a056402248900b0045411de7698mr32408983eda.214.1664354723092; Wed, 28 Sep 2022 01:45:23 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-95-232-92-192.retail.telecomitalia.it. [95.232.92.192]) by smtp.gmail.com with ESMTPSA id q1-20020a50cc81000000b00457618d3409sm2928883edi.68.2022.09.28.01.45.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Sep 2022 01:45:22 -0700 (PDT) From: Dario Binacchi To: u-boot@lists.denx.de Cc: Amarula patchwork , michael@amarulasolutions.com, Dario Binacchi , Fabio Estevam , Giulio Benetti , Han Xu , Heinrich Schuchardt , Lukasz Majewski , Miquel Raynal , "NXP i.MX U-Boot Team" , Neil Armstrong , Sean Anderson , Simon Glass , Stefano Babic Subject: [PATCH 0/7] Support NAND ONFI EDO mode for imx8mn architecture Date: Wed, 28 Sep 2022 10:45:02 +0200 Message-Id: <20220928084509.2758974-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ImMYitMC; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Debugging and testing the series made it necessary to add some patches to fix correct clock access and compilation issues raised by buildman. Dario Binacchi (3): dm: clk: add missing stub when CONFIG_CLK is deactivated mtd: mxs_nand: don't get the gpmi_apbh_dma clock mtd: mxs_nand: get the clock with the right name Michael Trimarchi (4): clk: imx: gate2 support shared counter and relative clock functions clk: imx: clk-imx8mn add gpmi nand clocks imx: gpmi: Add register needed to control nand bus timing mtd: mxs_nand: Support EDO mode for imx8mn architecture arch/arm/include/asm/mach-imx/regs-gpmi.h | 9 + drivers/clk/imx/clk-gate2.c | 15 +- drivers/clk/imx/clk-imx8mn.c | 14 ++ drivers/clk/imx/clk.h | 27 ++- drivers/mtd/nand/raw/mxs_nand.c | 200 ++++++++++++++++++++++ drivers/mtd/nand/raw/mxs_nand_dt.c | 79 +++++---- include/clk.h | 32 +++- include/mxs_nand.h | 3 + 8 files changed, 333 insertions(+), 46 deletions(-)