diff options
author | Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> | 2014-05-26 19:18:37 +0530 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-06-05 14:44:56 -0400 |
commit | 4f0d1a2aea08b0dd62b0a1d82b36967470897101 (patch) | |
tree | 827e1b42cbb179be433f5d0e574143f7430f3b2a /include/fat.h | |
parent | 9cd73bf85994ea06cd2fbde509e73e72d063b332 (diff) | |
download | u-boot-imx-4f0d1a2aea08b0dd62b0a1d82b36967470897101.zip u-boot-imx-4f0d1a2aea08b0dd62b0a1d82b36967470897101.tar.gz u-boot-imx-4f0d1a2aea08b0dd62b0a1d82b36967470897101.tar.bz2 |
fat: Define MAX_CLUSTSIZE using CONFIG_FS_FAT_MAX_CLUSTSIZE
Define the MAX_CLUSTSIZE to default of 65536 only if
CONFIG_FS_FAT_MAX_CLUSTSIZE is not defined.
This option has been provided to save memory in some
memory constrained cases.
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Acked-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'include/fat.h')
-rw-r--r-- | include/fat.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/fat.h b/include/fat.h index 81d9790..63cf787 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)) |