diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mtd/onenand.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mtd/onenand.h b/include/linux/mtd/onenand.h index 89aaffbc9576..2c29a5ca2c91 100644 --- a/include/linux/mtd/onenand.h +++ b/include/linux/mtd/onenand.h | |||
@@ -115,10 +115,18 @@ struct onenand_chip { | |||
115 | void *priv; | 115 | void *priv; |
116 | }; | 116 | }; |
117 | 117 | ||
118 | /* | ||
119 | * Helper macros | ||
120 | */ | ||
118 | #define ONENAND_CURRENT_BUFFERRAM(this) (this->bufferram_index) | 121 | #define ONENAND_CURRENT_BUFFERRAM(this) (this->bufferram_index) |
119 | #define ONENAND_NEXT_BUFFERRAM(this) (this->bufferram_index ^ 1) | 122 | #define ONENAND_NEXT_BUFFERRAM(this) (this->bufferram_index ^ 1) |
120 | #define ONENAND_SET_NEXT_BUFFERRAM(this) (this->bufferram_index ^= 1) | 123 | #define ONENAND_SET_NEXT_BUFFERRAM(this) (this->bufferram_index ^= 1) |
121 | 124 | ||
125 | #define ONENAND_GET_SYS_CFG1(this) \ | ||
126 | (this->read_word(this->base + ONENAND_REG_SYS_CFG1)) | ||
127 | #define ONENAND_SET_SYS_CFG1(v, this) \ | ||
128 | (this->write_word(v, this->base + ONENAND_REG_SYS_CFG1)) | ||
129 | |||
122 | /* | 130 | /* |
123 | * Options bits | 131 | * Options bits |
124 | */ | 132 | */ |