blob: 482dcf54db876176bd4dc56cb2eca24860c0ad1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
#
# Copyright (c) 2016 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
menu "File System"
config FILE_SYSTEM
bool "File system support"
default n
help
Enables support for file system.
config FILE_SYSTEM_FAT
bool "FAT file system support"
default y
depends on FILE_SYSTEM
help
Enables FAT file system support.
config FS_FAT_RAM_DISK
bool
prompt "RAM Disk"
help
RAM buffer used to emulate storage disk.
This option can used to test the file
system.
config FS_FAT_FLASH_DISK
bool
prompt "Flash"
help
Flash device is used for the file system.
if FS_FAT_RAM_DISK
config FS_VOLUME_SIZE
hex
default 0x18000
help
This is the file system volume size in bytes.
config FS_BLOCK_SIZE
hex
default 0x1000
help
This is typically the minimum block size that
is erased at one time in flash storage.
endif # FS_RAM_DISK
if FS_FAT_FLASH_DISK
config FS_FAT_FLASH_DISK_W25QXXDV
bool "W25QXXDV flash component"
default ""
help
Enables to use the W25QXXDV as the storage media
for the file system.
if FS_FAT_FLASH_DISK_W25QXXDV
config FS_VOLUME_SIZE
hex
default 0x200000
help
This is the file system volume size in bytes.
config FS_BLOCK_SIZE
hex
default 0x1000
help
This is typically the minimum flash erase size
that the flash component supports.
config FS_FLASH_DEV_NAME
string
prompt "File system flash storage device name"
depends on SPI_FLASH_W25QXXDV
default SPI_FLASH_W25QXXDV_DRV_NAME
config FS_FLASH_START
hex
default 0x0
help
This is start address of the flash for the file
system.
config FS_FLASH_MAX_RW_SIZE
int
default SPI_FLASH_W25QXXDV_MAX_DATA_LEN
help
This is the maximum number of bytes that the
flash_write API can do per invocation.
API.
config FS_FLASH_ERASE_ALIGNMENT
hex
default 0x1000
help
This is the start address alignment required by
the flash component.
endif # FS_FAT_FLASH_DISK_W25QXXDV
endif # FS_FAT_FLASH_DISK
endmenu
|