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
This commit is contained in:
Gabor Juhos
2014-02-23 07:19:32 +00:00
parent 8fea668cb7
commit 3d906ac6ac
3 changed files with 175 additions and 116 deletions

View File

@@ -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_ */