SAMV71-XULT: Add support for SmartFS on QuadFLASH
This commit is contained in:
parent
9e687fae9e
commit
4a28ff1abb
@ -208,8 +208,20 @@ int sam_bringup(void)
|
|||||||
SYSLOG("ERROR: st25fl1_initialize failed\n");
|
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? */
|
/* And now do what with the ST25FL1 MTD device? */
|
||||||
#warning Missing Logic
|
# warning Missing Logic
|
||||||
|
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -62,6 +62,7 @@
|
|||||||
#define HAVE_MACADDR 1
|
#define HAVE_MACADDR 1
|
||||||
#define HAVE_MTDCONFIG 1
|
#define HAVE_MTDCONFIG 1
|
||||||
#define HAVE_ST25FL1 1
|
#define HAVE_ST25FL1 1
|
||||||
|
#define HAVE_SMARTFS 1
|
||||||
#define HAVE_WM8904 1
|
#define HAVE_WM8904 1
|
||||||
#define HAVE_AUDIO_NULL 1
|
#define HAVE_AUDIO_NULL 1
|
||||||
|
|
||||||
@ -186,10 +187,16 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_MTD_ST25FL1
|
#ifndef CONFIG_MTD_ST25FL1
|
||||||
# undef HAVE_ST25FL1
|
# undef HAVE_ST25FL1
|
||||||
|
# undef HAVE_SMARTFS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_SAMV7_QSPI
|
#ifndef CONFIG_SAMV7_QSPI
|
||||||
# undef HAVE_ST25FL1
|
# undef HAVE_ST25FL1
|
||||||
|
# undef HAVE_SMARTFS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if !defined(CONFIG_MTD_SMART) || !defined(CONFIG_FS_SMARTFS)
|
||||||
|
# undef HAVE_SMARTFS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Audio */
|
/* Audio */
|
||||||
|
Loading…
Reference in New Issue
Block a user