artik053: add to handle ftl partition
This commit adds mtd ftl initialize routine in artik053_tash.c. When
partition type specified to "ftl", it is initialized by mtdftl device at
boot.
@@ -165,6 +165,13 @@ static void artik053_configure_partitions(void)
lldbg("ERROR: failed to create partition.\n");
return;
}
+#if defined(CONFIG_MTD_FTL)
+ if (!strncmp(types, "ftl,", 4)) {
+ if (ftl_initialize(partno, mtd_part)) {
+ lldbg("ERROR: failed to initialise mtd ftl errno :%d\n", errno);
+ }
+ } else
+#endif
#if defined(CONFIG_MTD_CONFIG)
if (!strncmp(types, "config,", 7)) {
mtdconfig_register(mtd_part);
