mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
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>
This commit is contained in:
parent
9cd73bf859
commit
4f0d1a2aea
2 changed files with 11 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue