diff options
| author | Bastian Hecht <hechtb@googlemail.com> | 2012-05-14 08:14:41 -0400 |
|---|---|---|
| committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-07-06 13:17:03 -0400 |
| commit | 3c7ea4eccfd2e209ba666d217a2993b8a084a429 (patch) | |
| tree | d473d603989efa810727bbe76c6e8fc9348149d5 /include/linux/mtd | |
| parent | cb54751d7a706b4a068b798b97e8a815b99fa835 (diff) | |
mtd: sh_flctl: Add support for error IRQ
When the data transfer between the controller and the NAND chip fails,
we now get notified.
Signed-off-by: Bastian Hecht <hechtb@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd')
| -rw-r--r-- | include/linux/mtd/sh_flctl.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/mtd/sh_flctl.h b/include/linux/mtd/sh_flctl.h index a38e1fa8af01..2daa43e17039 100644 --- a/include/linux/mtd/sh_flctl.h +++ b/include/linux/mtd/sh_flctl.h | |||
| @@ -107,6 +107,14 @@ | |||
| 107 | #define DOCMD2_E (0x1 << 17) /* 2nd cmd stage execute */ | 107 | #define DOCMD2_E (0x1 << 17) /* 2nd cmd stage execute */ |
| 108 | #define DOCMD1_E (0x1 << 16) /* 1st cmd stage execute */ | 108 | #define DOCMD1_E (0x1 << 16) /* 1st cmd stage execute */ |
| 109 | 109 | ||
| 110 | /* FLINTDMACR control bits */ | ||
| 111 | #define ESTERINTE (0x1 << 24) /* ECC error interrupt enable */ | ||
| 112 | #define AC1CLR (0x1 << 19) /* ECC FIFO clear */ | ||
| 113 | #define AC0CLR (0x1 << 18) /* Data FIFO clear */ | ||
| 114 | #define ECERB (0x1 << 9) /* ECC error */ | ||
| 115 | #define STERB (0x1 << 8) /* Status error */ | ||
| 116 | #define STERINTE (0x1 << 4) /* Status error enable */ | ||
| 117 | |||
| 110 | /* FLTRCR control bits */ | 118 | /* FLTRCR control bits */ |
| 111 | #define TRSTRT (0x1 << 0) /* translation start */ | 119 | #define TRSTRT (0x1 << 0) /* translation start */ |
| 112 | #define TREND (0x1 << 1) /* translation end */ | 120 | #define TREND (0x1 << 1) /* translation end */ |
| @@ -145,6 +153,7 @@ struct sh_flctl { | |||
| 145 | uint32_t erase_ADRCNT; /* bits of FLCMDCR in ERASE1 cmd */ | 153 | uint32_t erase_ADRCNT; /* bits of FLCMDCR in ERASE1 cmd */ |
| 146 | uint32_t rw_ADRCNT; /* bits of FLCMDCR in READ WRITE cmd */ | 154 | uint32_t rw_ADRCNT; /* bits of FLCMDCR in READ WRITE cmd */ |
| 147 | uint32_t flcmncr_base; /* base value of FLCMNCR */ | 155 | uint32_t flcmncr_base; /* base value of FLCMNCR */ |
| 156 | uint32_t flintdmacr_base; /* irq enable bits */ | ||
| 148 | 157 | ||
| 149 | int hwecc_cant_correct[4]; | 158 | int hwecc_cant_correct[4]; |
| 150 | 159 | ||
