]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
fat: Define MAX_CLUSTSIZE only if not defined in config
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Thu, 13 Mar 2014 06:27:36 +0000 (11:57 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 17 Mar 2014 13:34:10 +0000 (14:34 +0100)
Define MAX_CLUSTSIZE only if not defined in board specific
config file as this size can be decreased to save memory
in some memory constrained cases.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
include/fat.h

index 2c951e7d79c626bdff3749eabd2cce5283089050..f66996ec06c7c433d6871275b17f1cf3a1e4015e 100644 (file)
@@ -18,7 +18,9 @@
 #define VFAT_MAXSEQ            9   /* Up to 9 of 13 2-byte UTF-16 entries */
 #define PREFETCH_BLOCKS                2
 
+#ifndef MAX_CLUSTSIZE
 #define MAX_CLUSTSIZE  65536
+#endif
 #define DIRENTSPERBLOCK        (mydata->sect_size / sizeof(dir_entry))
 #define DIRENTSPERCLUST        ((mydata->clust_size * mydata->sect_size) / \
                         sizeof(dir_entry))