drivers/mtd: Add support for /dev/smart loop device. From Ken Petit

This commit is contained in:
Ken Pettit
2015-11-28 09:00:26 -06:00
committed by Gregory Nutt
parent 1f8f097783
commit 5821af1bbe
7 changed files with 393 additions and 19 deletions
+30
View File
@@ -268,6 +268,28 @@ config RAMMTD_FLASHSIM
endif
config FILEMTD
bool "File-based MTD driver"
default n
---help---
Build support for a File-based MTD driver.
if FILEMTD
config FILEMTD_BLOCKSIZE
int "File MTD block size"
default 512
config FILEMTD_ERASESIZE
int "File MTD erase block size"
default 4096
config FILEMTD_ERASESTATE
hex "Simulated erase state"
default 0xff
endif
config MTD_AT24XX
bool "I2C-based AT24xx eeprom"
default n
@@ -479,6 +501,14 @@ config MTD_SMART
if MTD_SMART
config SMART_DEV_LOOP
bool "Enable SMART loop device"
select FILEMTD
default n
---help---
Supports a smart loop device that can be used to export a
file (or character device) as a SMART block device.
config MTD_SMART_SECTOR_SIZE
int "SMART Device sector size"
default 1024