/* * GPMC support functions * * Copyright (C) 2005-2006 Nokia Corporation * * Author: Juha Yrjola * * Copyright (C) 2009 Texas Instruments * Added OMAP4 support - Santosh Shilimkar <santosh.shilimkar@ti.com> * * 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. */#undef DEBUG#include<linux/irq.h>#include<linux/kernel.h>#include<linux/init.h>#include<linux/err.h>#include<linux/clk.h>#include<linux/ioport.h>#include<linux/spinlock.h>#include<linux/io.h>#include<linux/module.h>#include<linux/interrupt.h>#include<linux/platform_device.h>#include<linux/of.h>#include<linux/of_mtd.h>#include<linux/of_device.h>#include<linux/mtd/nand.h>#include<linux/platform_data/mtd-nand-omap2.h>#include<asm/mach-types.h>#include"soc.h"#include"common.h"#include"omap_device.h"#include"gpmc.h"#include"gpmc-nand.h"#include