mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
Add an MTD layer that will add read-ahead or write buffering to any MTD driver (incomplete)
This commit is contained in:
+38
-1
@@ -66,6 +66,40 @@ config MTD_BYTE_WRITE
|
||||
support such writes. The SMART file system can take advantage of
|
||||
this option if it is enabled.
|
||||
|
||||
config MTD_WRBUFFER
|
||||
bool "Enable MTD write buffering
|
||||
default n
|
||||
depends on DRVR_WRITEBUFFER
|
||||
---help---
|
||||
Build the mtd_rwbuffer layer and enable support for write buffering.
|
||||
|
||||
if MTD_WRBUFFER
|
||||
|
||||
config MTD_NWRBLOCKS
|
||||
int "MTD write buffer size"
|
||||
default 4
|
||||
---help---
|
||||
The size of the MTD write buffer (in blocks)
|
||||
|
||||
endif # MTD_WRBUFFER
|
||||
|
||||
config MTD_READAHEAD
|
||||
bool "Enable MTD read-ahead buffering
|
||||
default n
|
||||
depends on DRVR_READAHEAD
|
||||
---help---
|
||||
Build the mtd_rwbuffer layer and enable support for read-ahead buffering.
|
||||
|
||||
if MTD_READAHEAD
|
||||
|
||||
config MTD_NRDBLOCKS
|
||||
int "MTD read-head buffer size"
|
||||
default 4
|
||||
---help---
|
||||
The size of the MTD read-ahead buffer (in blocks)
|
||||
|
||||
endif # MTD_READAHEAD
|
||||
|
||||
config MTD_CONFIG
|
||||
bool "Enable Dev Config (MTD based) device"
|
||||
default n
|
||||
@@ -73,6 +107,8 @@ config MTD_CONFIG
|
||||
Provides a /dev/config device for saving / restoring application
|
||||
configuration data to a standard MTD device or partition.
|
||||
|
||||
if MTD_CONFIG
|
||||
|
||||
config MTD_CONFIG_RAM_CONSOLIDATE
|
||||
bool "Always use RAM consolidation method (work in progress)"
|
||||
default n
|
||||
@@ -97,13 +133,14 @@ config MTD_CONFIG_RAM_CONSOLIDATE
|
||||
|
||||
config MTD_CONFIG_ERASEDVALUE
|
||||
hex "Erased value of bytes on the MTD device"
|
||||
depends on MTD_CONFIG
|
||||
default 0xff
|
||||
---help---
|
||||
Specifies the value of the erased state of the MTD FLASH. For
|
||||
most FLASH parts, this is 0xff, but could also be zero depending
|
||||
on the device.
|
||||
|
||||
endif # MTD_CONFIG
|
||||
|
||||
comment "MTD Device Drivers"
|
||||
|
||||
menuconfig MTD_NAND
|
||||
|
||||
Reference in New Issue
Block a user