mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[JFFS2] Add support for JFFS2-on-Dataflash devices.
For Dataflash, can_mark_obsolete = false and the NAND write buffering code (wbuf.c) is used. Since the DataFlash chip will automatically erase pages when writing, the cleanmarkers are not needed - so cleanmarker_oob = false and cleanmarker_size = 0 DataFlash page-sizes are not a power of two (they're multiples of 528 bytes). The SECTOR_ADDR macro (added in the previous core patch) is replaced with a (slower) div/mod version if CONFIG_JFFS2_FS_DATAFLASH is selected. Signed-off-by: Andrew Victor <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
This commit is contained in:
parent
3be36675d4
commit
8f15fd55f9
9 changed files with 98 additions and 17 deletions
|
|
@ -1084,6 +1084,13 @@ config JFFS2_FS_NOR_ECC
|
|||
ECC for JFFS2. This type of flash chip is not common, however it is
|
||||
available from ST Microelectronics.
|
||||
|
||||
config JFFS2_FS_DATAFLASH
|
||||
bool "JFFS2 support for DataFlash (EXPERIMENTAL)"
|
||||
depends on JFFS2_FS && EXPERIMENTAL
|
||||
default n
|
||||
help
|
||||
This enables the experimental support for JFFS2 on DataFlash devices.
|
||||
|
||||
config JFFS2_COMPRESSION_OPTIONS
|
||||
bool "Advanced compression options for JFFS2"
|
||||
depends on JFFS2_FS
|
||||
|
|
|
|||
Loading…
Reference in a new issue