28 #include <linux/slab.h>
30 #include <linux/module.h>
35 #include <mach/hardware.h>
36 #include <asm/sizes.h>
43 static void __iomem *autcpu12_fio_base;
49 { .name =
"AUTCPU12 flash partition 1",
52 { .name =
"AUTCPU12 flash partition 2",
58 { .name =
"AUTCPU12 flash partition 1",
61 { .name =
"AUTCPU12 flash partition 2",
67 { .name =
"AUTCPU12 flash partition 1",
70 { .name =
"AUTCPU12 flash partition 2",
76 { .name =
"AUTCPU12 flash partition 1",
79 { .name =
"AUTCPU12 flash partition 2",
81 .size = 112 *
SZ_1M },
84 #define NUM_PARTITIONS16K 2
85 #define NUM_PARTITIONS32K 2
86 #define NUM_PARTITIONS64K 2
87 #define NUM_PARTITIONS128K 2
96 static void autcpu12_hwcontrol(
struct mtd_info *mtd,
int cmd,
129 static int __init autcpu12_init(
void)
138 printk(
"Unable to allocate AUTCPU12 NAND MTD device structure.\n");
145 if (!autcpu12_fio_base) {
146 printk(
"Ioremap autcpu12 SmartMedia Card failed\n");
152 this = (
struct nand_chip *)(&autcpu12_mtd[1]);
159 autcpu12_mtd->
priv =
this;
165 this->
cmd_ctrl = autcpu12_hwcontrol;
184 switch (autcpu12_mtd->
size) {
202 printk(
"Unsupported SmartMedia device\n");
221 static void __exit autcpu12_cleanup(
void)