Extends the MTD configdata device with the following features / additions:

1.  Configurable option to use named config items instead of enumerated ID/Instance numbers.
2.  Ability to iterate through the existing configdata items in the /dev/config device.
3.  Ability to "unset" a configdata item.
4.  Ability to perform "flash_eraseall" on the /dev/config device.
This commit is contained in:
Ken Pettit
2018-12-20 14:14:40 -06:00
committed by Gregory Nutt
parent 43d37c866b
commit baab6dd1bd
3 changed files with 271 additions and 26 deletions
+13
View File
@@ -161,6 +161,19 @@ config MTD_CONFIG_ERASEDVALUE
most FLASH parts, this is 0xff, but could also be zero depending
on the device.
config MTD_CONFIG_NAMED
bool "Use item NAMES instead of ID/enumeration in Dev Config device"
default n
---help---
Changes config item identification from ID/INST to NAMED values.
config MTD_CONFIG_NAME_LEN
int "Dev Config item max name length"
default 24
depends on MTD_CONFIG_NAMED
---help---
Sets the maximum length of config item names.
endif # MTD_CONFIG
comment "MTD Device Drivers"