Go to the documentation of this file.
20 #include <linux/slab.h>
22 #include <linux/module.h>
27 #include <mach/hardware.h>
28 #include <asm/sizes.h>
29 #include <mach/h1900-gpio.h>
30 #include <mach/ipaq.h>
45 {
name:
"h1910 NAND Flash",
47 size:16 * 1024 * 1024}
50 #define NUM_PARTITIONS 1
59 static void h1910_hwcontrol(
struct mtd_info *mtd,
int cmd,
72 static int h1910_device_ready(
struct mtd_info *mtd)
81 static int __init h1910_init(
void)
86 if (!machine_is_h1900())
89 nandaddr =
ioremap(0x08000000, 0x1000);
91 printk(
"Failed to ioremap nand flash.\n");
97 if (!h1910_nand_mtd) {
98 printk(
"Unable to allocate h1910 NAND MTD device structure.\n");
104 this = (
struct nand_chip *)(&h1910_nand_mtd[1]);
111 h1910_nand_mtd->
priv =
this;
131 kfree(h1910_nand_mtd);
149 static void __exit h1910_cleanup(
void)
160 kfree(h1910_nand_mtd);