| 
					
				 | 
			
			
				@@ -0,0 +1,91 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/* 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * board-devkit8000.c - TimLL Devkit8000 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * Copyright (C) 2009 Kim Botherway 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * Copyright (C) 2010 Thomas Weber 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * Modified from mach-omap2/board-omap3beagle.c 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * Initial code: Syed Mohammed Khasim 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * This program is free software; you can redistribute it and/or modify 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * it under the terms of the GNU General Public License version 2 as 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * published by the Free Software Foundation. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <linux/kernel.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <linux/init.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <linux/platform_device.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <linux/delay.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <linux/err.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <linux/clk.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <linux/io.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <linux/leds.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <linux/gpio.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <linux/input.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <linux/gpio_keys.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <linux/mtd/mtd.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <linux/mtd/partitions.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <linux/mtd/nand.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <linux/mmc/host.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <linux/regulator/machine.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <linux/i2c/twl.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include "id.h" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <asm/mach-types.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <asm/mach/arch.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <asm/mach/map.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <asm/mach/flash.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include "common.h" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include "gpmc.h" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <linux/platform_data/mtd-nand-omap2.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <video/omapdss.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <video/omap-panel-generic-dpi.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <video/omap-panel-tfp410.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <linux/platform_data/spi-omap2-mcspi.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <linux/input/matrix_keypad.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <linux/spi/spi.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <linux/dm9000.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <linux/interrupt.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include "sdram-micron-mt46h32m32lf-6.h" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include "mux.h" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include "hsmmc.h" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include "board-flash.h" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include "common-board-devices.h" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#define	NAND_CS			0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#define OMAP_DM9000_GPIO_IRQ	25 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#define OMAP3_DEVKIT_TS_GPIO	27 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+static struct mtd_partition devkit8000_nand_partitions[] = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	/* All the partition sizes are listed in terms of NAND block size */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.name		= "X-Loader", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.offset		= 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.size		= 4 * NAND_BLOCK_SIZE, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.mask_flags	= MTD_WRITEABLE,	/* force read-only */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.name		= "U-Boot", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.offset		= MTDPART_OFS_APPEND,	/* Offset = 0x80000 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.size		= 15 * NAND_BLOCK_SIZE, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.mask_flags	= MTD_WRITEABLE,	/* force read-only */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.name		= "U-Boot Env", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.offset		= MTDPART_OFS_APPEND,	/* Offset = 0x260000 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.size		= 1 * NAND_BLOCK_SIZE, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.name		= "Kernel", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.offset		= MTDPART_OFS_APPEND,	/* Offset = 0x280000 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.size		= 32 * NAND_BLOCK_SIZE, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.name		= "File System", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.offset		= MTDPART_OFS_APPEND,	/* Offset = 0x680000 */ 
			 |