From: Siva Durga Prasad Paladugu Date: Thu, 13 Mar 2014 06:27:36 +0000 (+0530) Subject: fat: Define MAX_CLUSTSIZE only if not defined in config X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2dd5b795d2a2d335555db68f6095c75d74a668fc;p=thirdparty%2Fu-boot.git fat: Define MAX_CLUSTSIZE only if not defined in config 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 Signed-off-by: Michal Simek --- diff --git a/include/fat.h b/include/fat.h index 2c951e7d79c..f66996ec06c 100644 --- a/include/fat.h +++ b/include/fat.h @@ -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))