public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Alexander Dahl <ada@thorsis.com>
To: Dario Binacchi <dario.binacchi@amarulasolutions.com>,
	Michael Trimarchi <michael@amarulasolutions.com>
Cc: Balamanikandan Gunasundar
	<balamanikandan.gunasundar@microchip.com>,
	Eugen Hristev <eugen.hristev@collabora.com>,
	Mihai Sain <mihai.sain@microchip.com>,
	Li Bin <bin.li@microchip.com>,
	u-boot@lists.denx.de
Subject: [PATCH v2 2/6] mtd: nand: raw: Port another option flag from Linux
Date: Wed, 20 Mar 2024 10:02:10 +0100	[thread overview]
Message-ID: <20240320090214.40465-3-ada@thorsis.com> (raw)
In-Reply-To: <20240320090214.40465-1-ada@thorsis.com>

Introduced in upstream Linux with commit 7a08dbaedd365 for release v5.0.

When the new atmel nand driver was backported to U-Boot with commit
6a8dfd57220d ("nand: atmel: Add DM based NAND driver") that definition
was added to the driver instead of the header file.  Move it over to the
other definitions with the same help text it has in Linux.

Code actually using this has not been ported over to raw nand base yet.

Signed-off-by: Alexander Dahl <ada@thorsis.com>
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
---

Notes:
    v1:
    - initial patch version
    
    v2:
    - collected tags

 drivers/mtd/nand/raw/atmel/nand-controller.c | 2 --
 include/linux/mtd/rawnand.h                  | 7 +++++++
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/nand/raw/atmel/nand-controller.c b/drivers/mtd/nand/raw/atmel/nand-controller.c
index 0e0441472b8..e06523f3298 100644
--- a/drivers/mtd/nand/raw/atmel/nand-controller.c
+++ b/drivers/mtd/nand/raw/atmel/nand-controller.c
@@ -1429,8 +1429,6 @@ static int atmel_nand_setup_data_interface(struct mtd_info *mtd, int csline,
 	return nc->caps->ops->setup_data_interface(nand, csline, conf);
 }
 
-#define NAND_KEEP_TIMINGS       0x00800000
-
 static void atmel_nand_init(struct atmel_nand_controller *nc,
 			    struct atmel_nand *nand)
 {
diff --git a/include/linux/mtd/rawnand.h b/include/linux/mtd/rawnand.h
index fb002ae6411..4abaf4734cf 100644
--- a/include/linux/mtd/rawnand.h
+++ b/include/linux/mtd/rawnand.h
@@ -249,6 +249,13 @@ enum nand_ecc_algo {
  */
 #define NAND_USE_BOUNCE_BUFFER	0x00100000
 
+/*
+ * Do not try to tweak the timings at runtime. This is needed when the
+ * controller initializes the timings on itself or when it relies on
+ * configuration done by the bootloader.
+ */
+#define NAND_KEEP_TIMINGS	0x00800000
+
 /* Options set by nand scan */
 /* bbt has already been read */
 #define NAND_BBT_SCANNED	0x40000000
-- 
2.39.2


  parent reply	other threads:[~2024-03-20  9:03 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-20  9:02 [PATCH v2 0/6] mtd: nand: raw: Collected improvements Alexander Dahl
2024-03-20  9:02 ` [PATCH v2 1/6] mtd: nand: raw: Use macro nand_to_mtd() where appropriate Alexander Dahl
2024-03-20  9:02 ` Alexander Dahl [this message]
2024-03-20  9:02 ` [PATCH v2 3/6] mtd: nand: raw: Fix (most) Kconfig indentation Alexander Dahl
2024-03-20  9:02 ` [PATCH v2 4/6] mtd: nand: raw: atmel: Introduce optional debug commands Alexander Dahl
2024-03-20  9:02 ` [PATCH v2 5/6] mtd: nand: raw: atmel: Fix comment in timings preparation Alexander Dahl
2024-03-20 12:25   ` Michael Nazzareno Trimarchi
2024-03-20  9:02 ` [PATCH v2 6/6] cmd: nand: Add new optional sub-command 'onfi' Alexander Dahl
2024-03-20 12:48   ` Mihai.Sain
2024-03-20 14:08   ` Mihai.Sain
2024-03-21  9:16     ` Michael Nazzareno Trimarchi
2024-03-22 10:02       ` Mihai.Sain
2024-03-22 11:46         ` Alexander Dahl
2024-03-22 11:54           ` Michael Nazzareno Trimarchi
2024-03-22 12:02             ` Alexander Dahl
2024-03-22 12:34               ` Michael Nazzareno Trimarchi
2024-04-14 13:41 ` [PATCH v2 0/6] mtd: nand: raw: Collected improvements Dario Binacchi
2024-04-15  6:13   ` Alexander Dahl
2024-04-15  6:32     ` Dario Binacchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240320090214.40465-3-ada@thorsis.com \
    --to=ada@thorsis.com \
    --cc=balamanikandan.gunasundar@microchip.com \
    --cc=bin.li@microchip.com \
    --cc=dario.binacchi@amarulasolutions.com \
    --cc=eugen.hristev@collabora.com \
    --cc=michael@amarulasolutions.com \
    --cc=mihai.sain@microchip.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox