Kconfig 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. help
  6. Enable driver model for SPI flash. This SPI flash interface
  7. (spi_flash_probe(), spi_flash_write(), etc.) is then
  8. implemented by the SPI flash uclass. There is one standard
  9. SPI flash driver which knows how to probe most chips
  10. supported by U-Boot. The uclass interface is defined in
  11. include/spi_flash.h, but is currently fully compatible
  12. with the old interface to avoid confusion and duplication
  13. during the transition parent. SPI and SPI flash must be
  14. enabled together (it is not possible to use driver model
  15. for one and not the other).
  16. config SPI_FLASH_SANDBOX
  17. bool "Support sandbox SPI flash device"
  18. depends on SANDBOX && DM_SPI_FLASH
  19. help
  20. Since sandbox cannot access real devices, an emulation mechanism is
  21. provided instead. Drivers can be connected up to the sandbox SPI
  22. bus (see CONFIG_SANDBOX_SPI) and SPI traffic will be routed to this
  23. device. Typically the contents of the emulated SPI flash device is
  24. stored in a file on the host filesystem.
  25. config SPI_FLASH
  26. bool "Legacy SPI Flash Interface support"
  27. help
  28. Enable the legacy SPI flash support. This will include basic
  29. standard support for things like probing, read / write, and
  30. erasing through cmd_sf interface.
  31. If unsure, say N
  32. config SPI_FLASH_BAR
  33. bool "SPI flash Bank/Extended address register support"
  34. depends on SPI_FLASH
  35. help
  36. Enable the SPI flash Bank/Extended address register support.
  37. Bank/Extended address registers are used to access the flash
  38. which has size > 16MiB in 3-byte addressing.
  39. config SF_DUAL_FLASH
  40. bool "SPI DUAL flash memory support"
  41. depends on SPI_FLASH
  42. help
  43. Enable this option to support two flash memories connected to a single
  44. controller. Currently Xilinx Zynq qspi supports this.
  45. if SPI_FLASH
  46. config SPI_FLASH_ATMEL
  47. bool "Atmel SPI flash support"
  48. help
  49. Add support for various Atmel SPI flash chips (AT45xxx and AT25xxx)
  50. config SPI_FLASH_EON
  51. bool "EON SPI flash support"
  52. help
  53. Add support for various EON SPI flash chips (EN25xxx)
  54. config SPI_FLASH_GIGADEVICE
  55. bool "GigaDevice SPI flash support"
  56. help
  57. Add support for various GigaDevice SPI flash chips (GD25xxx)
  58. config SPI_FLASH_MACRONIX
  59. bool "Macronix SPI flash support"
  60. help
  61. Add support for various Macronix SPI flash chips (MX25Lxxx)
  62. config SPI_FLASH_SPANSION
  63. bool "Spansion SPI flash support"
  64. help
  65. Add support for various Spansion SPI flash chips (S25FLxxx)
  66. config SPI_FLASH_STMICRO
  67. bool "STMicro SPI flash support"
  68. help
  69. Add support for various STMicro SPI flash chips (M25Pxxx and N25Qxxx)
  70. config SPI_FLASH_SST
  71. bool "SST SPI flash support"
  72. help
  73. Add support for various SST SPI flash chips (SST25xxx)
  74. config SPI_FLASH_WINBOND
  75. bool "Winbond SPI flash support"
  76. help
  77. Add support for various Winbond SPI flash chips (W25xxx)
  78. endif
  79. config SPI_FLASH_USE_4K_SECTORS
  80. bool "Use small 4096 B erase sectors"
  81. depends on SPI_FLASH
  82. default y
  83. help
  84. Many flash memories support erasing small (4096 B) sectors. Depending
  85. on the usage this feature may provide performance gain in comparison
  86. to erasing whole blocks (32/64 KiB).
  87. Changing a small part of the flash's contents is usually faster with
  88. small sectors. On the other hand erasing should be faster when using
  89. 64 KiB block instead of 16 × 4 KiB sectors.
  90. Please note that some tools/drivers/filesystems may not work with
  91. 4096 B erase size (e.g. UBIFS requires 15 KiB as a minimum).
  92. config SPI_FLASH_DATAFLASH
  93. bool "AT45xxx DataFlash support"
  94. depends on SPI_FLASH && DM_SPI_FLASH
  95. help
  96. Enable the access for SPI-flash-based AT45xxx DataFlash chips.
  97. DataFlash is a kind of SPI flash. Most AT45 chips have two buffers
  98. in each chip, which may be used for double buffered I/O; but this
  99. driver doesn't (yet) use these for any kind of i/o overlap or prefetching.
  100. Sometimes DataFlash is packaged in MMC-format cards, although the
  101. MMC stack can't (yet?) distinguish between MMC and DataFlash
  102. protocols during enumeration.
  103. If unsure, say N
  104. config SPI_FLASH_MTD
  105. bool "SPI Flash MTD support"
  106. depends on SPI_FLASH
  107. help
  108. Enable the MTD support for spi flash layer, this adapter is for
  109. translating mtd_read/mtd_write commands into spi_flash_read/write
  110. commands. It is not intended to use it within sf_cmd or the SPI
  111. flash subsystem. Such an adapter is needed for subsystems like
  112. UBI which can only operate on top of the MTD layer.
  113. If unsure, say N
  114. endmenu # menu "SPI Flash Support"