Thread (18 messages) 18 messages, 3 authors, 2010-12-22
STALE5759d

Revision v6 of 10 in this series.

Revisions (10)
  1. v5 [diff vs current]
  2. v5 [diff vs current]
  3. v5 [diff vs current]
  4. v5 [diff vs current]
  5. v6 [diff vs current]
  6. v6 [diff vs current]
  7. v6 current
  8. v7 [diff vs current]
  9. v8 [diff vs current]
  10. v9 [diff vs current]

RE: [PATCH 2/7] omap3: nand: configurable transfer type per board

From: Ghorai, Sukumar <hidden>
Date: 2010-12-22 07:52:12
Also in: linux-arm-kernel

-----Original Message-----
From: Tony Lindgren [mailto:tony@atomide.com]
Sent: Saturday, December 18, 2010 5:39 AM
To: Ghorai, Sukumar
Cc: linux-omap@vger.kernel.org; linux-mtd@lists.infradead.org; linux-arm-
kernel@lists.infradead.org
Subject: Re: [PATCH 2/7] omap3: nand: configurable transfer type per board

* Sukumar Ghorai [off-list ref] [101126 07:25]:
quoted
nand transfer type (sDMA, Polled, prefetch) can be select from board
file,
quoted
enabling all transfer type in driver, by default.

this helps in multi-omap build and to select different transfer type for
different board.

Signed-off-by: Sukumar Ghorai <redacted>
---
 arch/arm/plat-omap/include/plat/nand.h |    7 +++
 drivers/mtd/nand/Kconfig               |   17 ------
 drivers/mtd/nand/omap2.c               |   92 +++++++++++--------------
------
quoted
 3 files changed, 40 insertions(+), 76 deletions(-)
diff --git a/arch/arm/plat-omap/include/plat/nand.h b/arch/arm/plat-
omap/include/plat/nand.h
quoted
index 6562cd0..78c0bdb 100644
--- a/arch/arm/plat-omap/include/plat/nand.h
+++ b/arch/arm/plat-omap/include/plat/nand.h
@@ -10,6 +10,12 @@

 #include <linux/mtd/partitions.h>

+enum nand_io {
+	NAND_OMAP_PREFETCH_POLLED = 0,	/* prefetch polled mode, default
*/
quoted
+	NAND_OMAP_POLLED,		/* polled mode, without prefetch */
+	NAND_OMAP_PREFETCH_DMA		/* prefetch enabled sDMA mode */
+};
+
 struct omap_nand_platform_data {
 	unsigned int		options;
 	int			cs;
@@ -20,6 +26,7 @@ struct omap_nand_platform_data {
 	int			(*nand_setup)(void);
 	int			(*dev_ready)(struct omap_nand_platform_data *);
 	int			dma_channel;
+	enum nand_io		xfer_type;
 	unsigned long		phys_base;
 	int			devsize;
 };
So maybe the devsize in patch 1/7 should be handled with this too?
[Ghorai] patch 1/7 [1] is to select the NAND type i.e. x8 or x16 NAND; 
So I am keeping as separate patch. And let me know if I am missing anything.
 
[1] https://patchwork.kernel.org/patch/359092/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help