kernel: add pending mtd patches adding NVMEM support

It's meant to provide upstream support for mtd & NVMEM. It's required
e.g. for reading MAC address from mtd partition content. It seems to be
in a final shape so it's worth testing.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
This commit is contained in:
Rafał Miłecki
2021-03-12 18:30:01 +01:00
parent deceb03993
commit e90e75b12c
18 changed files with 515 additions and 17 deletions

View File

@@ -22,7 +22,7 @@ Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
struct device_node *pp;
int nr_parts, i, ret = 0;
bool dedicated = true;
@@ -124,9 +127,13 @@ static int parse_fixed_partitions(struct
@@ -126,9 +129,13 @@ static int parse_fixed_partitions(struct
parts[i].size = of_read_number(reg + a_cells, s_cells);
parts[i].of_node = pp;
@@ -39,7 +39,7 @@ Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
parts[i].name = partname;
if (of_get_property(pp, "read-only", &len))
@@ -242,6 +249,18 @@ static int __init ofpart_parser_init(voi
@@ -244,6 +251,18 @@ static int __init ofpart_parser_init(voi
return 0;
}