diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mtd/onenand.h | 3 | ||||
-rw-r--r-- | include/linux/mtd/onenand_regs.h | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/mtd/onenand.h b/include/linux/mtd/onenand.h index f775a7af3890..a99b2944d26b 100644 --- a/include/linux/mtd/onenand.h +++ b/include/linux/mtd/onenand.h | |||
@@ -150,6 +150,9 @@ struct onenand_chip { | |||
150 | #define ONENAND_SET_SYS_CFG1(v, this) \ | 150 | #define ONENAND_SET_SYS_CFG1(v, this) \ |
151 | (this->write_word(v, this->base + ONENAND_REG_SYS_CFG1)) | 151 | (this->write_word(v, this->base + ONENAND_REG_SYS_CFG1)) |
152 | 152 | ||
153 | #define ONENAND_IS_DDP(this) \ | ||
154 | (this->device_id & ONENAND_DEVICE_IS_DDP) | ||
155 | |||
153 | /* Check byte access in OneNAND */ | 156 | /* Check byte access in OneNAND */ |
154 | #define ONENAND_CHECK_BYTE_ACCESS(addr) (addr & 0x1) | 157 | #define ONENAND_CHECK_BYTE_ACCESS(addr) (addr & 0x1) |
155 | 158 | ||
diff --git a/include/linux/mtd/onenand_regs.h b/include/linux/mtd/onenand_regs.h index e31c8f5d4271..5b46cb52d214 100644 --- a/include/linux/mtd/onenand_regs.h +++ b/include/linux/mtd/onenand_regs.h | |||
@@ -80,9 +80,11 @@ | |||
80 | #define ONENAND_VERSION_PROCESS_SHIFT (8) | 80 | #define ONENAND_VERSION_PROCESS_SHIFT (8) |
81 | 81 | ||
82 | /* | 82 | /* |
83 | * Start Address 1 F100h (R/W) | 83 | * Start Address 1 F100h (R/W) & Start Address 2 F101h (R/W) |
84 | */ | 84 | */ |
85 | #define ONENAND_DDP_SHIFT (15) | 85 | #define ONENAND_DDP_SHIFT (15) |
86 | #define ONENAND_DDP_CHIP0 (0) | ||
87 | #define ONENAND_DDP_CHIP1 (1 << ONENAND_DDP_SHIFT) | ||
86 | 88 | ||
87 | /* | 89 | /* |
88 | * Start Address 8 F107h (R/W) | 90 | * Start Address 8 F107h (R/W) |