|
|
@@ -2,15 +2,18 @@
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
* under the terms of the GNU General Public License version 2 as published
|
|
|
* by the Free Software Foundation.
|
|
|
+ *
|
|
|
+ * based on xway_nand.c
|
|
|
+ * Copyright © 2012 John Crispin <[email protected]>
|
|
|
+ * and oxnas_nand.c "NAND glue for Oxnas platforms"
|
|
|
+ * written by Ma Haijun <[email protected]>
|
|
|
*/
|
|
|
|
|
|
-#include <linux/module.h>
|
|
|
#include <linux/mtd/nand.h>
|
|
|
#include <linux/of_gpio.h>
|
|
|
#include <linux/of_platform.h>
|
|
|
#include <linux/clk.h>
|
|
|
#include <linux/reset.h>
|
|
|
-#include <mach/utils.h>
|
|
|
|
|
|
/* nand commands */
|
|
|
#define NAND_CMD_ALE BIT(18)
|
|
|
@@ -89,14 +92,3 @@ static int __init oxnas_register_nand(void)
|
|
|
}
|
|
|
|
|
|
subsys_initcall(oxnas_register_nand);
|
|
|
-
|
|
|
-static const struct of_device_id oxnas_nand_ids[] = {
|
|
|
- { .compatible = "plxtech,nand-nas782x"},
|
|
|
- { /* sentinel */ }
|
|
|
-};
|
|
|
-MODULE_DEVICE_TABLE(of, oxnas_nand_ids);
|
|
|
-
|
|
|
-MODULE_LICENSE("GPL");
|
|
|
-MODULE_AUTHOR("Ma Haijun");
|
|
|
-MODULE_DESCRIPTION("NAND glue for Oxnas platforms");
|
|
|
-MODULE_ALIAS("platform:oxnas_nand");
|