Go to the documentation of this file.
14 #ifndef __LINUX_MTD_NDFC_H
15 #define __LINUX_MTD_NDFC_H
20 #define NDFC_DATA 0x08
22 #define NDFC_BCFG0 0x30
23 #define NDFC_BCFG1 0x34
24 #define NDFC_BCFG2 0x38
25 #define NDFC_BCFG3 0x3c
27 #define NDFC_STAT 0x44
28 #define NDFC_HWCTL 0x48
29 #define NDFC_REVID 0x50
31 #define NDFC_STAT_IS_READY 0x01000000
33 #define NDFC_CCR_RESET_CE 0x80000000
34 #define NDFC_CCR_RESET_ECC 0x40000000
35 #define NDFC_CCR_RIE 0x20000000
36 #define NDFC_CCR_REN 0x10000000
37 #define NDFC_CCR_ROMEN 0x08000000
38 #define NDFC_CCR_ARE 0x04000000
39 #define NDFC_CCR_BS(x) (((x) & 0x3) << 24)
40 #define NDFC_CCR_BS_MASK 0x03000000
41 #define NDFC_CCR_ARAC0 0x00000000
42 #define NDFC_CCR_ARAC1 0x00001000
43 #define NDFC_CCR_ARAC2 0x00002000
44 #define NDFC_CCR_ARAC3 0x00003000
45 #define NDFC_CCR_ARAC_MASK 0x00003000
46 #define NDFC_CCR_RPG 0x0000C000
47 #define NDFC_CCR_EBCC 0x00000004
48 #define NDFC_CCR_DHC 0x00000002
50 #define NDFC_BxCFG_EN 0x80000000
51 #define NDFC_BxCFG_CED 0x40000000
52 #define NDFC_BxCFG_SZ_MASK 0x08000000
53 #define NDFC_BxCFG_SZ_8BIT 0x00000000
54 #define NDFC_BxCFG_SZ_16BIT 0x08000000
56 #define NDFC_MAX_BANKS 4