summaryrefslogtreecommitdiff
path: root/include/fat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/fat.h')
-rw-r--r--include/fat.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/fat.h b/include/fat.h
index 81d9790420..63cf78779b 100644
--- a/include/fat.h
+++ b/include/fat.h
@@ -18,7 +18,11 @@
#define VFAT_MAXSEQ 9 /* Up to 9 of 13 2-byte UTF-16 entries */
#define PREFETCH_BLOCKS 2
-#define MAX_CLUSTSIZE 65536
+#ifndef CONFIG_FS_FAT_MAX_CLUSTSIZE
+#define CONFIG_FS_FAT_MAX_CLUSTSIZE 65536
+#endif
+#define MAX_CLUSTSIZE CONFIG_FS_FAT_MAX_CLUSTSIZE
+
#define DIRENTSPERBLOCK (mydata->sect_size / sizeof(dir_entry))
#define DIRENTSPERCLUST ((mydata->clust_size * mydata->sect_size) / \
sizeof(dir_entry))