Kconfig 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. if SPI_FLASH
  40. config SPI_FLASH_ATMEL
  41. bool "Atmel SPI flash support"
  42. help
  43. Add support for various Atmel SPI flash chips (AT45xxx and AT25xxx)
  44. config SPI_FLASH_EON
  45. bool "EON SPI flash support"
  46. help
  47. Add support for various EON SPI flash chips (EN25xxx)
  48. config SPI_FLASH_GIGADEVICE
  49. bool "GigaDevice SPI flash support"
  50. help
  51. Add support for various GigaDevice SPI flash chips (GD25xxx)
  52. config SPI_FLASH_MACRONIX
  53. bool "Macronix SPI flash support"
  54. help
  55. Add support for various Macronix SPI flash chips (MX25Lxxx)
  56. config SPI_FLASH_SPANSION
  57. bool "Spansion SPI flash support"
  58. help
  59. Add support for various Spansion SPI flash chips (S25FLxxx)
  60. config SPI_FLASH_STMICRO
  61. bool "STMicro SPI flash support"
  62. help
  63. Add support for various STMicro SPI flash chips (M25Pxxx and N25Qxxx)
  64. config SPI_FLASH_SST
  65. bool "SST SPI flash support"
  66. help
  67. Add support for various SST SPI flash chips (SST25xxx)
  68. config SPI_FLASH_WINBOND
  69. bool "Winbond SPI flash support"
  70. help
  71. Add support for various Winbond SPI flash chips (W25xxx)
  72. endif
  73. config SPI_FLASH_USE_4K_SECTORS
  74. bool "Use small 4096 B erase sectors"
  75. depends on SPI_FLASH
  76. default y
  77. help
  78. Many flash memories support erasing small (4096 B) sectors. Depending
  79. on the usage this feature may provide performance gain in comparison
  80. to erasing whole blocks (32/64 KiB).
  81. Changing a small part of the flash's contents is usually faster with
  82. small sectors. On the other hand erasing should be faster when using
  83. 64 KiB block instead of 16 × 4 KiB sectors.
  84. Please note that some tools/drivers/filesystems may not work with
  85. 4096 B erase size (e.g. UBIFS requires 15 KiB as a minimum).
  86. config SPI_FLASH_DATAFLASH
  87. bool "AT45xxx DataFlash support"
  88. depends on SPI_FLASH && DM_SPI_FLASH
  89. help
  90. Enable the access for SPI-flash-based AT45xxx DataFlash chips.
  91. DataFlash is a kind of SPI flash. Most AT45 chips have two buffers
  92. in each chip, which may be used for double buffered I/O; but this
  93. driver doesn't (yet) use these for any kind of i/o overlap or prefetching.
  94. Sometimes DataFlash is packaged in MMC-format cards, although the
  95. MMC stack can't (yet?) distinguish between MMC and DataFlash
  96. protocols during enumeration.
  97. If unsure, say N
  98. config SPI_FLASH_MTD
  99. bool "SPI Flash MTD support"
  100. depends on SPI_FLASH
  101. help
  102. Enable the MTD support for spi flash layer, this adapter is for
  103. translating mtd_read/mtd_write commands into spi_flash_read/write
  104. commands. It is not intended to use it within sf_cmd or the SPI
  105. flash subsystem. Such an adapter is needed for subsystems like
  106. UBI which can only operate on top of the MTD layer.
  107. If unsure, say N
  108. if SPL
  109. config SPL_SPI_SUNXI
  110. bool "Support for SPI Flash on Allwinner SoCs in SPL"
  111. depends on MACH_SUN4I || MACH_SUN5I || MACH_SUN7I || MACH_SUN8I_H3 || MACH_SUN50I
  112. ---help---
  113. Enable support for SPI Flash. This option allows SPL to read from
  114. sunxi SPI Flash. It uses the same method as the boot ROM, so does
  115. not need any extra configuration.
  116. endif
  117. endmenu # menu "SPI Flash Support"