2016-12-09 11:14:55 +08:00
|
|
|
#
|
|
|
|
# Copyright (c) 2016 Intel Corporation
|
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-12-09 11:14:55 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
menu "Disk"
|
|
|
|
|
|
|
|
config DISK_ACCESS
|
2018-07-12 19:26:29 +08:00
|
|
|
bool "Enable Disk Interface"
|
2016-12-09 11:14:55 +08:00
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Enable disk access over a supported media backend like FLASH or RAM
|
2016-12-09 11:14:55 +08:00
|
|
|
|
2018-10-19 21:11:13 +08:00
|
|
|
if DISK_ACCESS
|
|
|
|
|
2018-05-04 21:47:58 +08:00
|
|
|
config DISK_ACCESS_MAX_VOLUMES
|
2018-07-12 19:26:29 +08:00
|
|
|
int "Maximum Disk Interfaces"
|
2018-05-04 21:47:58 +08:00
|
|
|
default 8
|
|
|
|
help
|
|
|
|
Maximum number of disk access interfaces supported
|
|
|
|
|
2018-10-16 20:40:06 +08:00
|
|
|
module = DISK
|
|
|
|
module-str = disk
|
|
|
|
source "subsys/logging/Kconfig.template.log_config"
|
2018-05-04 21:47:58 +08:00
|
|
|
|
2016-12-09 11:14:55 +08:00
|
|
|
config DISK_ACCESS_RAM
|
|
|
|
bool "RAM Disk"
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
RAM buffer used to emulate storage disk.
|
2017-12-28 21:40:21 +08:00
|
|
|
This option can be used to test the file
|
2017-12-13 23:08:21 +08:00
|
|
|
system.
|
2016-12-09 11:14:55 +08:00
|
|
|
|
|
|
|
config DISK_ACCESS_FLASH
|
|
|
|
bool "Flash"
|
|
|
|
select FLASH
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Flash device is used for the file system.
|
2016-12-09 11:14:55 +08:00
|
|
|
|
2017-12-22 05:17:07 +08:00
|
|
|
config DISK_ACCESS_SDHC
|
|
|
|
bool "SDHC card over SPI"
|
|
|
|
select SPI
|
|
|
|
select FLASH
|
|
|
|
help
|
|
|
|
File system on a SDHC card accessed over SPI.
|
|
|
|
|
2018-05-04 21:47:58 +08:00
|
|
|
endif # DISK_ACCESS
|
|
|
|
|
|
|
|
if DISK_ACCESS_RAM
|
|
|
|
|
|
|
|
config DISK_RAM_VOLUME_NAME
|
2018-07-12 19:26:29 +08:00
|
|
|
string "RAM Disk mount point or drive name"
|
2018-05-04 21:47:58 +08:00
|
|
|
default "RAM"
|
|
|
|
help
|
|
|
|
Disk name as per file system naming guidelines.
|
|
|
|
|
|
|
|
endif # DISK_ACCESS_RAM
|
2016-12-09 11:14:55 +08:00
|
|
|
|
|
|
|
if DISK_ACCESS_FLASH
|
|
|
|
|
2018-05-04 21:47:58 +08:00
|
|
|
config DISK_FLASH_VOLUME_NAME
|
2018-07-12 19:26:29 +08:00
|
|
|
string "Flash mount point or drive name"
|
2018-05-04 21:47:58 +08:00
|
|
|
default "NAND"
|
|
|
|
help
|
|
|
|
Disk name as per file system naming guidelines.
|
|
|
|
|
2016-12-09 11:14:55 +08:00
|
|
|
config DISK_FLASH_DEV_NAME
|
2018-07-12 19:26:29 +08:00
|
|
|
string "Flash device name to be used as storage backend"
|
2016-12-09 11:14:55 +08:00
|
|
|
|
|
|
|
config DISK_FLASH_START
|
2018-07-12 19:26:29 +08:00
|
|
|
hex "Flash device start address in hex"
|
2016-12-09 11:14:55 +08:00
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
This is start address of the flash to be used as storage backend.
|
2016-12-09 11:14:55 +08:00
|
|
|
|
|
|
|
config DISK_FLASH_MAX_RW_SIZE
|
2018-07-12 19:26:29 +08:00
|
|
|
int "Flash device max read-write size in decimal"
|
2016-12-09 11:14:55 +08:00
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
This is the maximum number of bytes that the
|
2017-12-28 21:40:21 +08:00
|
|
|
flash_write API can accept per invocation.
|
2017-12-13 23:08:21 +08:00
|
|
|
API.
|
2016-12-09 11:14:55 +08:00
|
|
|
|
|
|
|
config DISK_FLASH_ERASE_ALIGNMENT
|
2018-07-12 19:26:29 +08:00
|
|
|
hex "Flash device erase alignment in hex"
|
2016-12-09 11:14:55 +08:00
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
This is the start address alignment required by
|
|
|
|
the flash component.
|
2016-12-09 11:14:55 +08:00
|
|
|
|
|
|
|
config DISK_ERASE_BLOCK_SIZE
|
2018-07-12 19:26:29 +08:00
|
|
|
hex "Flash device erasable block size in hex"
|
2016-12-09 11:14:55 +08:00
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
This is typically the minimum block size that
|
|
|
|
is erased at one time in flash storage.
|
2018-06-04 23:14:17 +08:00
|
|
|
Typically it is equal to the flash memory page size.
|
2016-12-09 11:14:55 +08:00
|
|
|
|
|
|
|
config DISK_VOLUME_SIZE
|
2018-07-12 19:26:29 +08:00
|
|
|
hex "Flash device volume size in hex"
|
2016-12-09 11:14:55 +08:00
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
This is the file system volume size in bytes.
|
2016-12-09 11:14:55 +08:00
|
|
|
|
|
|
|
endif # DISK_ACCESS_FLASH
|
2017-12-22 05:17:07 +08:00
|
|
|
|
|
|
|
if DISK_ACCESS_SDHC
|
|
|
|
|
|
|
|
config DISK_SDHC_VOLUME_NAME
|
|
|
|
string "SDHC Disk mount point or drive name"
|
|
|
|
default "SDHC"
|
|
|
|
help
|
|
|
|
Disk name as per file system naming guidelines.
|
|
|
|
|
|
|
|
endif # DISK_ACCESS_SDHC
|
|
|
|
|
2016-12-09 11:14:55 +08:00
|
|
|
endmenu
|