OpenWrt – Blame information for rev 4
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
4 | office | 1 | /* |
2 | * Platform data definition for the built-in NAND controller of the |
||
3 | * Atheros AR934x SoCs |
||
4 | * |
||
5 | * Copyright (C) 2011-2012 Gabor Juhos <juhosg@openwrt.org> |
||
6 | * |
||
7 | * This program is free software; you can redistribute it and/or modify it |
||
8 | * under the terms of the GNU General Public License version 2 as published |
||
9 | * by the Free Software Foundation. |
||
10 | */ |
||
11 | |||
12 | #ifndef _AR934X_NFC_PLATFORM_H |
||
13 | #define _AR934X_NFC_PLATFORM_H |
||
14 | |||
15 | #define AR934X_NFC_DRIVER_NAME "ar934x-nfc" |
||
16 | |||
17 | struct mtd_info; |
||
18 | struct mtd_partition; |
||
19 | |||
20 | enum ar934x_nfc_ecc_mode { |
||
21 | AR934X_NFC_ECC_SOFT = 0, |
||
22 | AR934X_NFC_ECC_HW, |
||
23 | AR934X_NFC_ECC_SOFT_BCH, |
||
24 | }; |
||
25 | |||
26 | struct ar934x_nfc_platform_data { |
||
27 | const char *name; |
||
28 | struct mtd_partition *parts; |
||
29 | int nr_parts; |
||
30 | |||
31 | bool swap_dma; |
||
32 | enum ar934x_nfc_ecc_mode ecc_mode; |
||
33 | |||
34 | void (*hw_reset)(bool active); |
||
35 | void (*select_chip)(int chip_no); |
||
36 | int (*scan_fixup)(struct mtd_info *mtd); |
||
37 | }; |
||
38 | |||
39 | #endif /* _AR934X_NFC_PLATFORM_H */ |