ar71xx: ar934x_nfc: add experimental support for hardware ECC

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38069
This commit is contained in:
Gabor Juhos
2013-09-19 18:43:41 +00:00
parent ceecdfb1c9
commit d6fef0cb39
4 changed files with 352 additions and 3 deletions

View File

@@ -17,12 +17,19 @@
struct mtd_info;
struct mtd_partition;
enum ar934x_nfc_ecc_mode {
AR934X_NFC_ECC_SOFT = 0,
AR934X_NFC_ECC_HW,
};
struct ar934x_nfc_platform_data {
const char *name;
struct mtd_partition *parts;
int nr_parts;
bool swap_dma;
enum ar934x_nfc_ecc_mode ecc_mode;
void (*hw_reset)(bool active);
void (*select_chip)(int chip_no);
int (*scan_fixup)(struct mtd_info *mtd);