Thread (6 messages) flat view 6 messages, 2 authors, 2012-02-08

[PATCH v3 3/3] arm:davinci: move NAND and NOR devices as aemif MFD slaves

From: Manjunathappa, Prakash <hidden>
Date: 2012-02-08 04:00:47
Also in: lkml

Hi Mike,

On Tue, Feb 07, 2012 at 22:15:33, Michael Williamson wrote:
Hello Prakash,

On 2/7/2012 10:11 AM, Manjunathappa, Prakash wrote:
quoted
NAND and NOR device are made as aemif device slaves, hence all DaVinci
board NAND/NOR device registration achieved via aemif MFD driver.

Signed-off-by: Manjunathappa, Prakash <redacted>
---
Since v2:
Make changes for all DaVinci boards in single patch.


[...]
quoted
diff --git a/arch/arm/mach-davinci/board-mityomapl138.c b/arch/arm/mach-davinci/board-mityomapl138.c
index 672d820..bb29b7a 100644
--- a/arch/arm/mach-davinci/board-mityomapl138.c
+++ b/arch/arm/mach-davinci/board-mityomapl138.c
@@ -19,6 +19,7 @@
 #include <linux/etherdevice.h>
 #include <linux/spi/spi.h>
 #include <linux/spi/flash.h>
+#include <linux/mfd/davinci_aemif.h>
 
 #include <asm/io.h>
 #include <asm/mach-types.h>
@@ -414,18 +415,35 @@ static struct resource mityomapl138_nandflash_resource[] = {
 	},
 };
 
-static struct platform_device mityomapl138_nandflash_device = {
-	.name		= "davinci_nand",
-	.id		= 1,
-	.dev		= {
-		.platform_data	= &mityomapl138_nandflash_data,
+static struct platform_device mityomapl138_emif_devices[] __initdata = {
+	{
+		.name		= "davinci_nand",
+		.id		= 0,


Pretty sure this still needs to be a 1.  The nand is on chip select 3,
EMA_CS3, which I believe is the same as the da850 EVM.
Yes I could not test on this board. I will make id as 1.

Thanks,
Prakash
-Mike

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help