Kconfig 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. menu "SPI Flash Support"
  2. config DM_SPI_FLASH
  3. bool "Enable Driver Model for SPI flash"
  4. depends on DM && DM_SPI
  5. imply SPI_FLASH
  6. help
  7. Enable driver model for SPI flash. This SPI flash interface
  8. (spi_flash_probe(), spi_flash_write(), etc.) is then
  9. implemented by the SPI flash uclass. There is one standard
  10. SPI flash driver which knows how to probe most chips
  11. supported by U-Boot. The uclass interface is defined in
  12. include/spi_flash.h, but is currently fully compatible
  13. with the old interface to avoid confusion and duplication
  14. during the transition parent. SPI and SPI flash must be
  15. enabled together (it is not possible to use driver model
  16. for one and not the other).
  17. config SPI_FLASH_SANDBOX
  18. bool "Support sandbox SPI flash device"
  19. depends on SANDBOX && DM_SPI_FLASH
  20. help
  21. Since sandbox cannot access real devices, an emulation mechanism is
  22. provided instead. Drivers can be connected up to the sandbox SPI
  23. bus (see CONFIG_SANDBOX_SPI) and SPI traffic will be routed to this
  24. device. Typically the contents of the emulated SPI flash device is
  25. stored in a file on the host filesystem.
  26. config SPI_FLASH
  27. bool "SPI Flash Core Interface support"
  28. select SPI_MEM
  29. help
  30. Enable the SPI flash Core support. This will include basic
  31. standard support for things like probing, read / write, and
  32. erasing through cmd_sf interface.
  33. If unsure, say N
  34. config SF_DEFAULT_BUS
  35. int "SPI Flash default bus identifier"
  36. depends on SPI_FLASH || DM_SPI_FLASH
  37. default 0
  38. help
  39. The default bus may be provided by the platform
  40. to handle the common case when only a single serial
  41. flash is present on the system.
  42. config SF_DEFAULT_CS
  43. int "SPI Flash default Chip-select"
  44. depends on SPI_FLASH || DM_SPI_FLASH
  45. default 0
  46. help
  47. The default chip select may be provided by the platform
  48. to handle the common case when only a single serial
  49. flash is present on the system.
  50. config SF_DEFAULT_MODE
  51. hex "SPI Flash default mode (see include/spi.h)"
  52. depends on SPI_FLASH || DM_SPI_FLASH
  53. default 3
  54. help
  55. The default mode may be provided by the platform
  56. to handle the common case when only a single serial
  57. flash is present on the system.
  58. Not used for boot with device tree; the SPI driver reads
  59. speed and mode from plat values computed from
  60. available node.
  61. config SF_DEFAULT_SPEED
  62. int "SPI Flash default speed in Hz"
  63. depends on SPI_FLASH || DM_SPI_FLASH
  64. default 1000000
  65. help
  66. The default speed may be provided by the platform
  67. to handle the common case when only a single serial
  68. flash is present on the system.
  69. Not used for boot with device tree; the SPI driver reads
  70. speed and mode from plat values computed from
  71. available node.
  72. if SPI_FLASH
  73. config SPI_FLASH_SFDP_SUPPORT
  74. bool "SFDP table parsing support for SPI NOR flashes"
  75. depends on !SPI_FLASH_BAR
  76. help
  77. Enable support for parsing and auto discovery of parameters for
  78. SPI NOR flashes using Serial Flash Discoverable Parameters (SFDP)
  79. tables as per JESD216 standard.
  80. config SPI_FLASH_BAR
  81. bool "SPI flash Bank/Extended address register support"
  82. help
  83. Enable the SPI flash Bank/Extended address register support.
  84. Bank/Extended address registers are used to access the flash
  85. which has size > 16MiB in 3-byte addressing.
  86. config SF_DUAL_FLASH
  87. bool "SPI DUAL flash memory support"
  88. help
  89. Enable this option to support two flash memories connected to a single
  90. controller. Currently Xilinx Zynq qspi supports this.
  91. config SPI_FLASH_ATMEL
  92. bool "Atmel SPI flash support"
  93. help
  94. Add support for various Atmel SPI flash chips (AT45xxx and AT25xxx)
  95. config SPI_FLASH_EON
  96. bool "EON SPI flash support"
  97. help
  98. Add support for various EON SPI flash chips (EN25xxx)
  99. config SPI_FLASH_GIGADEVICE
  100. bool "GigaDevice SPI flash support"
  101. help
  102. Add support for various GigaDevice SPI flash chips (GD25xxx)
  103. config SPI_FLASH_ISSI
  104. bool "ISSI SPI flash support"
  105. help
  106. Add support for various ISSI SPI flash chips (ISxxx)
  107. config SPI_FLASH_MACRONIX
  108. bool "Macronix SPI flash support"
  109. help
  110. Add support for various Macronix SPI flash chips (MX25Lxxx)
  111. config SPI_FLASH_SPANSION
  112. bool "Spansion SPI flash support"
  113. help
  114. Add support for various Spansion SPI flash chips (S25FLxxx)
  115. config SPI_FLASH_STMICRO
  116. bool "STMicro SPI flash support"
  117. help
  118. Add support for various STMicro SPI flash chips (M25Pxxx and N25Qxxx)
  119. config SPI_FLASH_SST
  120. bool "SST SPI flash support"
  121. help
  122. Add support for various SST SPI flash chips (SST25xxx)
  123. config SPI_FLASH_WINBOND
  124. bool "Winbond SPI flash support"
  125. help
  126. Add support for various Winbond SPI flash chips (W25xxx)
  127. config SPI_FLASH_XMC
  128. bool "XMC SPI flash support"
  129. help
  130. Add support for various XMC (Wuhan Xinxin Semiconductor
  131. Manufacturing Corp.) SPI flash chips (XM25xxx)
  132. endif
  133. config SPI_FLASH_USE_4K_SECTORS
  134. bool "Use small 4096 B erase sectors"
  135. depends on SPI_FLASH
  136. default y
  137. help
  138. Many flash memories support erasing small (4096 B) sectors. Depending
  139. on the usage this feature may provide performance gain in comparison
  140. to erasing whole blocks (32/64 KiB).
  141. Changing a small part of the flash's contents is usually faster with
  142. small sectors. On the other hand erasing should be faster when using
  143. 64 KiB block instead of 16 × 4 KiB sectors.
  144. Please note that some tools/drivers/filesystems may not work with
  145. 4096 B erase size (e.g. UBIFS requires 15 KiB as a minimum).
  146. config SPI_FLASH_DATAFLASH
  147. bool "AT45xxx DataFlash support"
  148. depends on SPI_FLASH && DM_SPI_FLASH
  149. help
  150. Enable the access for SPI-flash-based AT45xxx DataFlash chips.
  151. DataFlash is a kind of SPI flash. Most AT45 chips have two buffers
  152. in each chip, which may be used for double buffered I/O; but this
  153. driver doesn't (yet) use these for any kind of i/o overlap or prefetching.
  154. Sometimes DataFlash is packaged in MMC-format cards, although the
  155. MMC stack can't (yet?) distinguish between MMC and DataFlash
  156. protocols during enumeration.
  157. If unsure, say N
  158. config SPI_FLASH_MTD
  159. bool "SPI Flash MTD support"
  160. depends on SPI_FLASH && MTD
  161. help
  162. Enable the MTD support for spi flash layer, this adapter is for
  163. translating mtd_read/mtd_write commands into spi_flash_read/write
  164. commands. It is not intended to use it within sf_cmd or the SPI
  165. flash subsystem. Such an adapter is needed for subsystems like
  166. UBI which can only operate on top of the MTD layer.
  167. If unsure, say N
  168. config SPL_SPI_FLASH_MTD
  169. bool "SPI flash MTD support for SPL"
  170. depends on SPI_FLASH
  171. help
  172. Enable the MTD support for the SPI flash layer in SPL.
  173. If unsure, say N
  174. endmenu # menu "SPI Flash Support"