Skip to contentSkip to conversation

OMAP3: Add support for NAND on ZOOM/LDP boards

PATCH New Vimal Singh 1 participant 1 message Nov 19, 2009

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

PATCH 1/1 OMAP3: Add support for NAND on ZOOM/LDP boards

Adding NAND support for ZOOM2/3 and LDP board.
I have tested it for ZOOM2 boards. Someone can verify it for LDP and ZOOM3 boards, hopefully it should not have any problem.

The size of the U-Boot environment partition was increased to 1.25MB.

Vikram: Changed ldp name to zoom.
Future boards will be called Zoom2/3/4 etc. LDP is a Zoom1. Somhow the LDP name got stuck to that.

Cc Vikram Pandita <[email protected]>
Cc Tony Lindgren <[email protected]>
---
 arch/arm/mach-omap2/Makefile                 |    3 +
 arch/arm/mach-omap2/board-ldp.c              |    2 +
 arch/arm/mach-omap2/board-zoom-flash.c       |   92 ++++++++++++++++++++++++++
 arch/arm/mach-omap2/board-zoom-peripherals.c |    2 +
 arch/arm/plat-omap/include/plat/board-zoom.h |   36 ++++++++++
 5 files changed, 135 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/mach-omap2/board-zoom-flash.c
 create mode 100644 arch/arm/plat-omap/include/plat/board-zoom.h
arch/arm/mach-omap2/Makefile +3 -0
index b0e5b46..c2ca76e 100644
@@ -62,6 +62,7 @@ obj-$(CONFIG_MACH_OMAP_APOLLON)		+= board-apollon.o
 obj-$(CONFIG_MACH_OMAP3_BEAGLE)		+= board-omap3beagle.o \
 					   mmc-twl4030.o
 obj-$(CONFIG_MACH_OMAP_LDP)		+= board-ldp.o \
+					   board-zoom-flash.o \
 					   mmc-twl4030.o
 obj-$(CONFIG_MACH_OVERO)		+= board-overo.o \
 					   mmc-twl4030.o
@@ -78,10 +79,12 @@ obj-$(CONFIG_MACH_NOKIA_RX51)		+= board-rx51.o \
 					   board-rx51-peripherals.o \
 					   mmc-twl4030.o
 obj-$(CONFIG_MACH_OMAP_ZOOM2)		+= board-zoom2.o \
+ 					   board-zoom-flash.o \
 					   board-zoom-peripherals.o \
 					   mmc-twl4030.o \
 					   board-zoom-debugboard.o
 obj-$(CONFIG_MACH_OMAP_ZOOM3)		+= board-zoom3.o \
+ 					   board-zoom-flash.o \
 					   board-zoom-peripherals.o \
 					   mmc-twl4030.o \
 					   board-zoom-debugboard.o
arch/arm/mach-omap2/board-ldp.c +2 -0
index c062238..8aebdf9 100644
@@ -42,6 +42,7 @@
 #include <asm/delay.h>
 #include <plat/control.h>
 #include <plat/usb.h>
+#include <plat/board-zoom.h>
 
 #include "mmc-twl4030.h"
 
@@ -385,6 +386,7 @@ static void __init omap_ldp_init(void)
 	ads7846_dev_init();
 	omap_serial_init();
 	usb_musb_init();
+	zoom_flash_init();
 
 	twl4030_mmc_init(mmc);
 	/* link regulators to MMC adapters */
(quoted diff) +0 -0

b/arch/arm/mach-omap2/board-zoom-flash.c
new file mode 100644
index 0000000..1867d6a

arch/arm/mach-omap2/board-zoom-flash.c new file +92 -0

92 lines not on this page · raw message

(quoted diff) +0 -0

b/arch/arm/mach-omap2/board-zoom-peripherals.c
index f14baa3..fcc2836 100755

arch/arm/mach-omap2/board-zoom-peripherals.c +2 -0
@@ -21,6 +21,7 @@
 #include <asm/mach/arch.h>
 #include <asm/mach/map.h>
 
+#include <plat/board-zoom.h>
 #include <plat/common.h>
 #include <plat/usb.h>
 
@@ -264,4 +265,5 @@ void __init zoom_peripherals_init(void)
 	omap_i2c_init();
 	omap_serial_init();
 	usb_musb_init();
+	zoom_flash_init();
 }
(quoted diff) +0 -0

b/arch/arm/plat-omap/include/plat/board-zoom.h
new file mode 100644
index 0000000..8d63f7e

arch/arm/plat-omap/include/plat/board-zoom.h new file +36 -0
@@ -0,0 +1,36 @@
+/*
+ * board-zoom.h
+ *
+ * Hardware definitions for TI OMAP3 LDP/ZOOM2.
+ *
+ * Copyright (C) 2008-09 Texas Instruments Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
+ * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#ifndef __ASM_ARCH_OMAP_LDP_H
+#define __ASM_ARCH_OMAP_LDP_H
+
+extern void zoom_flash_init(void);
+
+#define LDP3430_NAND_CS               0
+
+#endif /* __ASM_ARCH_OMAP_LDP_H */
Signature · 1 line
1.5.5