Skip to contentSkip to conversation

ARM: OMAP: 2430SDP support for omap2 OneNAND driver

PATCH In review Kevin Hilman 2 participants 2 messages Apr 26, 2007 – May 2, 2007

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: OMAP: 2430SDP support for omap2 OneNAND driver

Adds platform device for use of existing OMAP2 driver. Also, fixes up GPMC defines which are different between 2420 and 2430.

---
 arch/arm/mach-omap2/Makefile              |    3 
 arch/arm/mach-omap2/board-2430sdp-flash.c |  110 ++++++++++++++++++++++++++++++
 arch/arm/mach-omap2/board-2430sdp.c       |    4 +
 arch/arm/mach-omap2/gpmc.c                |    1 
 include/asm-arm/arch-omap/gpmc.h          |    6 +
 include/asm-arm/arch-omap/onenand.h       |    1 
 6 files changed, 123 insertions(+), 2 deletions(-)
arch/arm/mach-omap2/Makefile +2 -1
Index: dev/arch/arm/mach-omap2/Makefile
===================================================================
@@ -20,7 +20,8 @@ mmu_mach-objs			:= mmu.o
 # Specific board support
 obj-$(CONFIG_MACH_OMAP_GENERIC)		+= board-generic.o
 obj-$(CONFIG_MACH_OMAP_H4)		+= board-h4.o
-obj-$(CONFIG_MACH_OMAP_2430SDP)		+= board-2430sdp.o
+obj-$(CONFIG_MACH_OMAP_2430SDP)		+= board-2430sdp.o \
+					   board-2430sdp-flash.o
 obj-$(CONFIG_MACH_OMAP_APOLLON)		+= board-apollon.o \
 					   board-apollon-keys.o
 obj-$(CONFIG_MACH_NOKIA_N800)		+= board-n800.o board-n800-flash.o \
arch/arm/mach-omap2/board-2430sdp-flash.c new file +110 -0

110 lines not on this page · raw message

arch/arm/mach-omap2/board-2430sdp.c +4 -0
Index: dev/arch/arm/mach-omap2/board-2430sdp.c
===================================================================
@@ -192,12 +192,16 @@ static struct omap_board_config_kernel s
 	{OMAP_TAG_UART, &sdp2430_uart_config},
 };
 
+extern void __init sdp2430_flash_init(void);
+
 static void __init omap_2430sdp_init(void)
 {
 	platform_add_devices(sdp2430_devices, ARRAY_SIZE(sdp2430_devices));
 	omap_board_config = sdp2430_config;
 	omap_board_config_size = ARRAY_SIZE(sdp2430_config);
 	omap_serial_init();
+
+	sdp2430_flash_init();
 }
 
 static void __init omap_2430sdp_map_io(void)
arch/arm/mach-omap2/gpmc.c +0 -1
Index: dev/arch/arm/mach-omap2/gpmc.c
===================================================================
@@ -51,7 +51,6 @@
 #define GPMC_CS0		0x60
 #define GPMC_CS_SIZE		0x30
 
-#define GPMC_CS_NUM		8
 #define GPMC_MEM_START		0x00000000
 #define GPMC_MEM_END		0x3FFFFFFF
 #define BOOT_ROM_SPACE		0x100000	/* 1MB */
include/asm-arm/arch-omap/gpmc.h +6 -0
Index: dev/include/asm-arm/arch-omap/gpmc.h
===================================================================
@@ -11,6 +11,9 @@
 #ifndef __OMAP2_GPMC_H
 #define __OMAP2_GPMC_H
 
+/* Maximum Number of Chip Selects */
+#define GPMC_CS_NUM		8
+
 #define GPMC_CS_CONFIG1		0x00
 #define GPMC_CS_CONFIG2		0x04
 #define GPMC_CS_CONFIG3		0x08
@@ -22,6 +25,9 @@
 #define GPMC_CS_NAND_ADDRESS	0x20
 #define GPMC_CS_NAND_DATA	0x24
 
+#define GPMC_CONFIG		0x50
+#define GPMC_STATUS		0x54
+
 #define GPMC_CONFIG1_WRAPBURST_SUPP     (1 << 31)
 #define GPMC_CONFIG1_READMULTIPLE_SUPP  (1 << 30)
 #define GPMC_CONFIG1_READTYPE_ASYNC     (0 << 29)
include/asm-arm/arch-omap/onenand.h +1 -0
Index: dev/include/asm-arm/arch-omap/onenand.h
===================================================================
@@ -17,4 +17,5 @@ struct omap_onenand_platform_data {
 	struct mtd_partition	*parts;
 	int			nr_parts;
 	int                     (*onenand_setup)(void __iomem *);
+	int			dma_channel;
 };

--

maintainer
#1 lore raw
Quoted 2 lines · Kevin Hilman

Adds platform device for use of existing OMAP2 driver. Also, fixes up GPMC defines which are different between 2420 and 2430.

Thanks, pushing today.

Tony