21 #include <linux/kernel.h>
23 #include <linux/slab.h>
24 #include <linux/module.h>
38 #define SPIA_IO_BASE 0xd0000000
39 #define SPIA_FIO_BASE 0xf0000000
40 #define SPIA_PEDR 0x0080
45 #define SPIA_PEDDR 0x00c0
70 .name =
"SPIA flash partition 1",
72 .size = 2 * 1024 * 1024},
74 .name =
"SPIA flash partition 2",
75 .offset = 2 * 1024 * 1024,
76 .size = 6 * 1024 * 1024}
79 #define NUM_PARTITIONS 2
89 static void spia_hwcontrol(
struct mtd_info *mtd,
int cmd)
97 bits = (
ctrl & NAND_CNE) << 2;
109 static int __init spia_init(
void)
116 printk(
"Unable to allocate SPIA NAND MTD device structure.\n");
121 this = (
struct nand_chip *)(&spia_mtd[1]);
128 spia_mtd->
priv =
this;
135 (*(
volatile unsigned char *)(spia_io_base + spia_peddr)) = 0x07;
163 static void __exit spia_cleanup(
void)