SAMV71-XULT: Add support for SmartFS on QuadFLASH

This commit is contained in:
Gregory Nutt 2015-11-05 11:26:30 -06:00
parent 9e687fae9e
commit 4a28ff1abb
2 changed files with 20 additions and 1 deletions

View File

@ -208,8 +208,20 @@ int sam_bringup(void)
SYSLOG("ERROR: st25fl1_initialize failed\n");
}
#ifdef HAVE_SMARTFS
/* Configure the device with no partition support */
ret = smart_initialize(0, mtd, NULL);
if (ret != OK)
{
SYSLOG("ERROR: Failed to initialize SmartFS: %d\n", ret);
}
#else
/* And now do what with the ST25FL1 MTD device? */
#warning Missing Logic
# warning Missing Logic
#endif
}
#endif

View File

@ -62,6 +62,7 @@
#define HAVE_MACADDR 1
#define HAVE_MTDCONFIG 1
#define HAVE_ST25FL1 1
#define HAVE_SMARTFS 1
#define HAVE_WM8904 1
#define HAVE_AUDIO_NULL 1
@ -186,10 +187,16 @@
#ifndef CONFIG_MTD_ST25FL1
# undef HAVE_ST25FL1
# undef HAVE_SMARTFS
#endif
#ifndef CONFIG_SAMV7_QSPI
# undef HAVE_ST25FL1
# undef HAVE_SMARTFS
#endif
#if !defined(CONFIG_MTD_SMART) || !defined(CONFIG_FS_SMARTFS)
# undef HAVE_SMARTFS
#endif
/* Audio */