aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/include
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2014-02-23 07:19:32 +0000
committerGabor Juhos <juhosg@openwrt.org>2014-02-23 07:19:32 +0000
commit3d906ac6ac160613bc4c7a5093e6a4e16db8ffa0 (patch)
tree5a1b5ad3de61b670312b8426f120d2b90d255fa6 /target/linux/ar71xx/files/include
parent8fea668cb78c5f007fdc0c576f295580df2dceeb (diff)
downloadupstream-3d906ac6ac160613bc4c7a5093e6a4e16db8ffa0.tar.gz
upstream-3d906ac6ac160613bc4c7a5093e6a4e16db8ffa0.tar.bz2
upstream-3d906ac6ac160613bc4c7a5093e6a4e16db8ffa0.zip
ar71xx: rb91x-nand: rewrite to use GPIO API
Rewrite tha rb91x-nand driver to use GPIO API to modify the NAND control lines. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39700
Diffstat (limited to 'target/linux/ar71xx/files/include')
-rw-r--r--target/linux/ar71xx/files/include/linux/platform_data/rb91x_nand.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/include/linux/platform_data/rb91x_nand.h b/target/linux/ar71xx/files/include/linux/platform_data/rb91x_nand.h
new file mode 100644
index 0000000000..5f17fb8148
--- /dev/null
+++ b/target/linux/ar71xx/files/include/linux/platform_data/rb91x_nand.h
@@ -0,0 +1,16 @@
+#ifndef _RB91X_NAND_H_
+#define _RB91X_NAND_H_
+
+#define RB91X_NAND_DRIVER_NAME "rb91x-nand"
+
+struct rb91x_nand_platform_data {
+ int gpio_nce; /* chip enable, active low */
+ int gpio_ale; /* address latch enable */
+ int gpio_cle; /* command latch enable */
+ int gpio_rdy;
+ int gpio_read;
+ int gpio_nrw; /* read/write enable, active low */
+ int gpio_nle; /* latch enable, active low */
+};
+
+#endif /* _RB91X_NAND_H_ */ \ No newline at end of file