diff options
| author | Kyungmin Park <kyungmin.park@samsung.com> | 2005-09-03 02:20:08 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@mtd.linutronix.de> | 2005-11-06 15:22:01 -0500 |
| commit | fcc31470c49e224ed8115c70541f599fc7568fee (patch) | |
| tree | bcf6f27188d61649b7adc50fce990cd5fc912fcf /include/linux | |
| parent | cdc001305da4f057353911018e28f26f8f879061 (diff) | |
[PATCH] OneNAND: Update OMAP OneNAND mapping using device driver model
- Update OMAP OneNAND mapping file using device driver model
- Remove board specific macro and values.
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux')
| -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 | */ |
