]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/mtd/nand/orion_nand.c
[ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach
[linux-2.6-omap-h63xx.git] / drivers / mtd / nand / orion_nand.c
index ec5ad28b237ef338859b072157b7a24f00b32507..64002488c6eeff76b977c7a128fb2000233ecd2c 100644 (file)
@@ -18,7 +18,7 @@
 #include <linux/mtd/partitions.h>
 #include <asm/io.h>
 #include <asm/sizes.h>
-#include <asm/arch/hardware.h>
+#include <mach/hardware.h>
 #include <asm/plat-orion/orion_nand.h>
 
 #ifdef CONFIG_MTD_CMDLINE_PARTS
@@ -85,6 +85,9 @@ static int __init orion_nand_probe(struct platform_device *pdev)
        nc->cmd_ctrl = orion_nand_cmd_ctrl;
        nc->ecc.mode = NAND_ECC_SOFT;
 
+       if (board->chip_delay)
+               nc->chip_delay = board->chip_delay;
+
        if (board->width == 16)
                nc->options |= NAND_BUSWIDTH_16;
 
@@ -169,3 +172,4 @@ module_exit(orion_nand_exit);
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Tzachi Perelstein");
 MODULE_DESCRIPTION("NAND glue for Orion platforms");
+MODULE_ALIAS("platform:orion_nand");