kernel: Fix oob layout of XTX XT26G0xA

The correct oob layout is:

ECC:
region->offset = 48;
region->length = 16;

Free:
/* Reserve 1 byte for the BBM. */
region->offset = 1;
region->length = 47;

Signed-off-by: Felix Matouschek <felix@matouschek.org>
This commit is contained in:
Felix Matouschek authored and Chuanhong Guo committed 2022-04-09 21:08:26 +08:00
1 parent 3711aee56d
commit a5de91a88a
2 files changed
+6 -6

No files matched your search

@@ -83,8 +83,8 @@ Signed-off-by: Felix Matouschek <felix@matouschek.org>
+ if (section)
+ return -ERANGE;
+
+ region->offset = 8;
+ region->length = 40;
+ region->offset = 48;
+ region->length = 16;
+
+ return 0;
+}
@@ -96,7 +96,7 @@ Signed-off-by: Felix Matouschek <felix@matouschek.org>
+ return -ERANGE;
+
+ region->offset = 1;
+ region->length = 7;
+ region->length = 47;
+
+ return 0;
+}
@@ -83,8 +83,8 @@ Signed-off-by: Felix Matouschek <felix@matouschek.org>
+ if (section)
+ return -ERANGE;
+
+ region->offset = 8;
+ region->length = 40;
+ region->offset = 48;
+ region->length = 16;
+
+ return 0;
+}
@@ -96,7 +96,7 @@ Signed-off-by: Felix Matouschek <felix@matouschek.org>
+ return -ERANGE;
+
+ region->offset = 1;
+ region->length = 7;
+ region->length = 47;
+
+ return 0;
+}