summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/denali.h
diff options
context:
space:
mode:
authorDinh Nguyen <dinguyen@altera.com>2012-09-27 10:58:05 -0600
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-11-15 15:37:46 +0200
commit2a0a288ec258bd38d8855fad9419aeb45b7e8499 (patch)
treef726010165435c55d7b54936fa2521391b05a89b /drivers/mtd/nand/denali.h
parent30fad64325ba368ffe1f92bd37f4b96c1fa4da83 (diff)
downloadlinux-3.10-2a0a288ec258bd38d8855fad9419aeb45b7e8499.tar.gz
linux-3.10-2a0a288ec258bd38d8855fad9419aeb45b7e8499.tar.bz2
linux-3.10-2a0a288ec258bd38d8855fad9419aeb45b7e8499.zip
mtd: denali: split the generic driver and PCI layer
The Denali controller can also be found in SoC devices attached to a simple bus. Move the PCI specific parts into denali_pci so that we can add a denali_dt that uses the same driver but for a device tree driver instead of a PCI based device. Signed-off-by: Jamie Iles <jamie@jamieiles.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd/nand/denali.h')
-rw-r--r--drivers/mtd/nand/denali.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mtd/nand/denali.h b/drivers/mtd/nand/denali.h
index fabb9d56b39..e5aa99583e4 100644
--- a/drivers/mtd/nand/denali.h
+++ b/drivers/mtd/nand/denali.h
@@ -487,6 +487,7 @@ struct denali_nand_info {
uint32_t irq_status;
int irq_debug_array[32];
int idx;
+ int irq;
uint32_t devnum; /* represent how many nands connected */
uint32_t fwblks; /* represent how many blocks FW used */
@@ -496,4 +497,7 @@ struct denali_nand_info {
uint32_t max_banks;
};
+extern int denali_init(struct denali_nand_info *denali);
+extern void denali_remove(struct denali_nand_info *denali);
+
#endif /*_LLD_NAND_*/