Kconfig 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. # Copyright (c) 2016 Intel Corporation
  2. # SPDX-License-Identifier: Apache-2.0
  3. menuconfig DISK_ACCESS
  4. bool "Disk Interface"
  5. select DISK_DRIVERS
  6. help
  7. Enable disk access over a supported media backend like FLASH or RAM
  8. if DISK_ACCESS
  9. module = DISK
  10. module-str = disk
  11. source "subsys/logging/Kconfig.template.log_config"
  12. config DISK_ACCESS_RAM
  13. bool "RAM Disk"
  14. help
  15. RAM buffer used to emulate storage disk.
  16. This option can be used to test the file
  17. system.
  18. if DISK_ACCESS_RAM
  19. config DISK_RAM_VOLUME_SIZE
  20. int "RAM Disk size in kilobytes"
  21. default 96
  22. help
  23. Size of the RAM Disk.
  24. config DISK_RAM_VOLUME_NAME
  25. string "RAM Disk mount point or drive name"
  26. default "RAM"
  27. help
  28. Disk name as per file system naming guidelines.
  29. endif # DISK_ACCESS_RAM
  30. config DISK_ACCESS_FLASH
  31. bool "Flash"
  32. select FLASH
  33. help
  34. Flash device is used for the file system.
  35. if DISK_ACCESS_FLASH
  36. config DISK_FLASH_VOLUME_NAME
  37. string "Flash mount point or drive name"
  38. default "NAND"
  39. help
  40. Disk name as per file system naming guidelines.
  41. config DISK_FLASH_DEV_NAME
  42. string "Flash device name to be used as storage backend"
  43. config DISK_FLASH_START
  44. hex "Flash device start address in hex"
  45. help
  46. This is start address of the flash to be used as storage backend.
  47. config DISK_FLASH_MAX_RW_SIZE
  48. int "Flash device max read-write size in decimal"
  49. help
  50. This is the maximum number of bytes that the
  51. flash_write API can accept per invocation.
  52. API.
  53. config DISK_FLASH_ERASE_ALIGNMENT
  54. hex "Flash device erase alignment in hex"
  55. help
  56. This is the start address alignment required by
  57. the flash component.
  58. config DISK_ERASE_BLOCK_SIZE
  59. hex "Flash device erasable block size in hex"
  60. help
  61. This is typically the minimum block size that
  62. is erased at one time in flash storage.
  63. Typically it is equal to the flash memory page size.
  64. config DISK_FLASH_SECTOR_SIZE
  65. int "Flash device sector size"
  66. default 512
  67. help
  68. This is the file system sector size in bytes.
  69. config DISK_VOLUME_SIZE
  70. hex "Flash device volume size in hex"
  71. help
  72. This is the file system volume size in bytes.
  73. endif # DISK_ACCESS_FLASH
  74. config DISK_ACCESS_SDHC
  75. bool "SDHC card access"
  76. select FLASH
  77. help
  78. File system on a SDHC card.
  79. if DISK_ACCESS_SDHC
  80. config DISK_ACCESS_SPI_SDHC
  81. bool "SDHC access over SPI"
  82. depends on SPI
  83. help
  84. File system on a SDHC card accessed over SPI.
  85. config DISK_ACCESS_USDHC
  86. bool "NXP i.MXRT USDHC driver"
  87. depends on (HAS_MCUX_USDHC1 || HAS_MCUX_USDHC2)
  88. help
  89. File system on a SDHC card accessed over
  90. NXP USDHC.
  91. if DISK_ACCESS_USDHC
  92. config DISK_ACCESS_USDHC1
  93. bool "NXP i.MXRT USDHC instance 1"
  94. depends on HAS_MCUX_USDHC1
  95. help
  96. File system on a SDHC card accessed over
  97. USDHC instance 1.
  98. config DISK_ACCESS_USDHC2
  99. bool "NXP i.MXRT USDHC instance 2"
  100. depends on HAS_MCUX_USDHC2
  101. help
  102. File system on a SDHC card accessed over
  103. USDHC instance 2.
  104. endif # DISK_ACCESS_USDHC
  105. config DISK_SDHC_VOLUME_NAME
  106. string "SDHC Disk mount point or drive name"
  107. default "SD" if FAT_FILESYSTEM_ELM
  108. default "SDHC"
  109. help
  110. Disk name as per file system naming guidelines.
  111. endif # DISK_ACCESS_SDHC
  112. config DISK_ACCESS_STM32_SDMMC
  113. bool "STM32 SDMMC driver"
  114. depends on HAS_STM32CUBE
  115. select USE_STM32_HAL_SD
  116. select USE_STM32_LL_SDMMC
  117. default $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_SDMMC))
  118. help
  119. File system on sdmmc accessed through stm32 sdmmc.
  120. config DISK_STM32_SDMMC_VOLUME_NAME
  121. string "SDMMC Disk mount point or drive name"
  122. depends on DISK_ACCESS_STM32_SDMMC
  123. default "SD" if FAT_FILESYSTEM_ELM
  124. default "SDMMC"
  125. help
  126. Disk name as per file system naming guidelines.
  127. config DISK_ACCESS_SD
  128. bool "sdcard disk"
  129. depends on MMC
  130. default n
  131. help
  132. sdcard disk is used for the file system.
  133. config DISK_ACCESS_SPINAND
  134. bool "spinand disk"
  135. depends on SPINAND_ACTS
  136. default n
  137. help
  138. spinand disk is used for the file system.
  139. endif # DISK_ACCESS